views:

52

answers:

3

Hi! I want to know whether it's possible to get Information about opened pages in chrome (page title, url) from third party app (not extensions)?

A: 

It's definitely possible using Fiddler. In the Web Sessions list, it shows all the URLs that are accessed, and the program (and PID) that accessed them, including Chrome. If you click on one of the URLs and look under Inspectors on the right, then Text View on the lower section, you can see the <title> section for each page.

system PAUSE
That'll work, although I don't think that's what he's really looking for. AFAIK, Chrome has no such API for apps to use, and mucking about in their memory space yourself is a bad idea if you want your app to be stable.
EricLaw -MSFT-
A: 

Fiddler is tampering traffic, it is not what i really want. i can get this info from any opened browser just using their gui except chrome... I can't even read chrome session.

It sounds like you are building an application which tries to screenscrape URLs from browsers using window handles and GetWindowText. That's almost guaranteed to break as browsers are updated, and I'm not sure how you're even able to do it reliably with IE8 today.
EricLaw -MSFT-
+1  A: 

You can try use the Accessibility techniques. Chrome implemented IAccessible interfaces in Chromium that any screen readers can read. If you implement a screen reader like application you can easily get those data. But to do that, you would need to understand how accessible applications work.

Or you can check out ManagedSpy, where the source code is provided: http://msdn.microsoft.com/en-us/magazine/cc163617.aspx

Mohamed Mansour