I want to make test program that search Google logo image in Google main web page and show coordinate of Google logo in Google web page.
So i tried to get Handle of Chrome but i couldn't get Handle of that. I used Findwindow() and EnumWindows() to get handle of chrome. This functions are good at bringing handle values from other applications except chrome. But I don't think it cannot get the handle only when the target is chrome.
And i also tried to use Spy++ to get handle. ClassName is 'Intermediate D3D Window' and I tired it, but i failed to operate it;
how to get a handle on chrome??
61 Answer
Maybe you can view class and caption with WinExplorer(This is a third-party tool, I don't guarantee its security).
Then use HWND handle = FindWindow("Chrome_WidgetWin_1", "Google - Google Chrome");return window handle.
You can also use HWND handle = FindWindowEx(NULL, NULL, "Chrome_WidgetWin_1", NULL); return chrome handle.
