The chrome_omniboxView class is no longer available?

FindWindowEx(Hwnd, 0, "Chrome_OmniboxView", Nothing) 

Chrome_OmniboxView is no longer available. how can i get google chrome current url?

+4
source share
2 answers

I just wrote a Chrome extension to solve this problem. I put it in chrome webstore (free) here: https://chrome.google.com/webstore/detail/add-url-to-page-title/ghpeimfjbonkimelnkbgekmcboomkgmi

All he does is convert the html page title to this format: Original title | url: [http://www.the-url.com]

This is placed in the title bar of the Chrome window, which you can read using NativeWIN32.GetWindowText (handle);

+1
source

Run Spy ++ to find out the correct class names and the window handles you need. You must install it provided that you have Visual Studio installed.

With it, you can specify in a window, see the hierarchy of window descriptors and the exact class name that you should use with the API calls FindWindow() / GetWindow() .

0
source

Source: https://habr.com/ru/post/1498849/


All Articles