AutoHotkey Community

It is currently May 27th, 2012, 6:38 am

All times are UTC [ DST ]




Post new topic Reply to topic  [ 4 posts ] 
Author Message
PostPosted: May 16th, 2007, 12:52 pm 
Offline

Joined: February 12th, 2007, 7:54 am
Posts: 2462
This script retrieves hWnd/URL/Title/StatusText of all running iexplore/explorer Windows, including Tabs.
The shell should be set to explorer.exe for the script to work.

NEED COM Standard Library.

Code:
COM_Init()
psh :=   COM_CreateObject("Shell.Application")
psw :=   COM_Invoke(psh, "Windows")
Loop, %   COM_Invoke(psw, "Count")
   pwb := COM_Invoke(psw, "Item", A_Index-1), sInfo .= COM_Invoke(pwb, "hWnd") . " : """ . COM_Invoke(pwb, "LocationURL") . """,""" . COM_Invoke(pwb, "LocationName") . """,""" . COM_Invoke(pwb, "StatusText") . """,""" . COM_Invoke(pwb, "Name") . """,""" . COM_Invoke(pwb, "FullName") . """`n", COM_Release(pwb)
COM_Release(psw)
COM_Release(psh)
COM_Term()

MsgBox, % sInfo


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: April 20th, 2011, 1:12 am 
Offline

Joined: April 7th, 2011, 5:06 pm
Posts: 2
Not working for IE9


Report this post
Top
 Profile  
Reply with quote  
 Post subject:
PostPosted: February 23rd, 2012, 11:10 am 
This is for AutoHotkey Basic not _L which has COM built-in.


Report this post
Top
  
Reply with quote  
 Post subject:
PostPosted: February 23rd, 2012, 11:43 am 
For _L.
Code:
ComError := ComObjError(false)
For pwb in ComObjCreate("Shell.Application").Windows {
   sInfo .= pwb.hWnd " : " pwb.LocationURL " , "
      . pwb.LocationName ", "
      . pwb.StatusText ", "
      . pwb.Name ", "
      . pwb.FullName "`n"
}
MsgBox, % sInfo
ComObjError(ComError)


Report this post
Top
  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 4 posts ] 

All times are UTC [ DST ]


Who is online

Users browsing this forum: Apollo and 22 guests


You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Powered by phpBB® Forum Software © phpBB Group