get url from running IE

  • Thread starter Thread starter Michael Fällgreen
  • Start date Start date
M

Michael Fällgreen

Is there any way to get an instance of an running IE and read the url the
browser is displaying?

Thanks
 
If you're only interested in IE it may be better to use the COM APIs
in Shdocvw.dll. If you Tlbimp it you can write code like this to dump
info on all IE (and Windows Explorer) windows.

Dim ie As InternetExplorer
For Each ie In New ShellWindows()
Console.WriteLine(ie.HWND)
Console.WriteLine(ie.LocationName)
Console.WriteLine(ie.LocationURL)
Next
 
Michael Fällgreen said:
Is there any way to get an instance of an running IE and read the url the
browser is displaying?

\\\

' Requires a reference to "Microsoft Internet Controls" ("SHDocVw.dll").
For Each IE As InternetExplorer In New ShellWindows()
MsgBox(IE.LocationURL)
Next IE
///
 
Kelly,

The time difference is only 11 minutes, that is absolute less than the
normal time that somebody can read the complete newsgroup while you are than
sending a message.

Cor

vbnetdev said:
Wasn't this what I posted or did I miss something?

--
Get a powerful web, database, application, and email hosting with KJM
Solutions
http://www.kjmsolutions.com
 
Kelly, Cor,

Cor Ligthert said:
The time difference is only 11 minutes, that is absolute less than the
normal time that somebody can read the complete newsgroup while you are
than sending a message.

Yeah, I was looking for a previous message where I gave that reply in Google
Groups but didn't come up with the right keywords immediately.
 
Back
Top