Jump to content
Sign in to follow this  

Retrieve list of browsers open

Recommended Posts

I am trying to log all websites accessed via IE. I need a way to get a list that I can loop through using _IEAttach. Does anybody know how to retrieve a list of HWND's or any other way that would work for me? I would go with using ProcessList("iexplore.exe") except IE7 supports tabs, and I believe that using the PID would only grab me the information from the active tab. Thanks for any advice I can get!

Share this post

Link to post
Share on other sites

I found my answer here http://www.autoitscript.com/forum/index.ph...st&p=174932. Many Thanks to cdkid, you rock!!

$shell = ObjCreate("Shell.Application")
dim $winsar[1], $count = 1
For $i in $shell.windows
        If (ObjName($i.document) = "DispHTMLDocument") Then
            ReDim $winsar[UBound($winsar, 1) + 1]
            $winsar[$count] = $i.locationurl
            $count = $count + 1
$winsar[0] = $count - 1

Share this post

Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

  • Create New...