Click here to Skip to main content
15,895,746 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I cannot find the window Chrome_OmniboxView. I think the name of Chrome maybe change. The code as following cannot work anymore.
Could you please help me?

C++
hwndChromeMain = FindMainWebBroswer(L"Chrome_WidgetWin_1"); // OK
// get buffer
::SendMessage(hwndChromeMain, WM_GETTEXT, 255, (LPARAM)buffer);  // OK        
// saved buffer
// find chrome child tab
hwndChromeChild = ::FindWindowExW(hwndChromeMain, NULL, L"Chrome_OmniboxView", NULL); // NOT OK

The hwndChromeChild is always NULL.
Posted
Updated 22-Dec-16 7:29am
Comments
barneyman 2-Jun-15 23:17pm    
https://www.google.co.nz/search?q=Chrome_OmniboxView&rlz=1C1CHLW_enAU503AU503&oq=Chrome_OmniboxView&aqs=chrome..69i57j69i61&sourceid=chrome&es_sm=122&ie=UTF-8

it's a known issue, with known solutions
DangBao 2-Jun-15 23:30pm    
Thanks barneyman

1 solution

if you want to write an extension for Chrome use the official Chrome extension API for best results. And take a look at the Omnibox API. Because there is a lot of illegal use the browsers often change some security solution and so some hacks wont work forever.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900