ishi
ishi

Reputation: 41

the class chrome_omniboxView is no longer available?

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

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

Upvotes: 4

Views: 1146

Answers (2)

user2787809
user2787809

Reputation: 31

I've just written a Chrome extension to resolve this exact problem. I've put it in the chrome webstore (free) here: https://chrome.google.com/webstore/detail/add-url-to-page-title/ghpeimfjbonkimelnkbgekmcboomkgmi

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

This is put into the window title by Chrome, which you can read using NativeWIN32.GetWindowText(handle);

Upvotes: 1

Mike Weir
Mike Weir

Reputation: 3189

Run Spy++ to figure out the proper class names and window handles you need. You should have it installed assuming you have Visual Studio installed.

With it, you can point at the window, see the hierarchy of window handles, and the exact class name you should use with FindWindow()/GetWindow() API calls.

Upvotes: 0

Related Questions