[RESOLVED] Get active url in Google Chrome from v.29 with IAccessible
Based in some examples of source codes as this => http://stackoverflow.com/questions/2...urrent-version, I'm trying get active url on address bar from Google Chrome with IAccessible, but it always return NULL (0). Could someone help me please?
Re: Get active url in Google Chrome from v.29 with IAccessible
I would use the Active Accessibility Tools that used to come with the Active Accessibility 2.0 SDK. Specifically use the AccExplorer32.exe tool to identify the aa elements - then you can compare with what your code does and what the tool discovers. Due to security considerations, this may not work within a hook.
Re: Get active url in Google Chrome from v.29 with IAccessible
The approach works just fine, see the attached sample. However, there are lots of (null) lines produced when you refuse to filter by "Address and search bar".
Re: Get active url in Google Chrome from v.29 with IAccessible
Originally Posted by Igor Vartanov
The approach works just fine, see the attached sample. However, there are lots of (null) lines produced when you refuse to filter by "Address and search bar".
Thank you very much for help me! I'm using VC++ 2013 and was necessary change kbhit() for _kbhit(), and then I compiled your code in attachment with success. But when execute, showed "Press any key to leave." and when pressed any key, the program finished. Then, how do fix?
Re: Get active url in Google Chrome from v.29 with IAccessible
Originally Posted by FL4SHC0D3R
But when execute, showed "Press any key to leave." and when pressed any key, the program finished. Then, how do fix?
Well, the program is expected to work in background until you press any key, this is what "Press any key to leave" informs you about.
If you want to see any events from Chrome, you need to interact with your Chrome to invoke some. In my tests I just opened new tab and navigated to CG forum. This is what you can see in my logs.
Re: [RESOLVED] Get active url in Google Chrome from v.29 with IAccessible
Originally Posted by FL4SHC0D3R
I'm trying get active url on address bar from Google Chrome with IAccessible
Maybe this is not what you think it is. The approach gives you an ability to subscribe to events from Chrome, but not to directly get the URL of already opened web page.
Re: [RESOLVED] Get active url in Google Chrome from v.29 with IAccessible
Originally Posted by Igor Vartanov
Maybe this is not what you think it is. The approach gives you an ability to subscribe to events from Chrome, but not to directly get the URL of already opened web page.
Igor,
I already solved the problem . Thank you very much one more time for all your help
* The Best Reasons to Target Windows 8
Learn some of the best reasons why you should seriously consider bringing your Android mobile development expertise to bear on the Windows 8 platform.