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??

6

1 Answer

Maybe you can view class and caption with WinExplorer(This is a third-party tool, I don't guarantee its security).

1

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.

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy