AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Retrieve Address/Title/Status Bar of iexplore/explorer

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
Sean



Joined: 12 Feb 2007
Posts: 1337

PostPosted: Wed May 16, 2007 12:52 pm    Post subject: Retrieve Address/Title/Status Bar of iexplore/explorer Reply with quote

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
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 676

PostPosted: Fri Apr 04, 2008 6:58 pm    Post subject: Reply with quote

Loven it
biggy here
And it may be that im just dumb
Im trying to figure out some unique property to each IE7 Tab other than index which could change depending on if i close some tabs or open a new tab with same page title
Limitations of my need.
cant filter by URL or Title Attribute(LocationName) << edited
Unique Tab reference whatever it is must remain the same no matter what happens in and with other tabs or windows.
of course closing said tab sets the reverence to 0 or triggers an error if used
_________________
Read this
Com
Automate IE7 with Tabs
Back to top
View user's profile Send private message
tank



Joined: 21 Dec 2007
Posts: 676

PostPosted: Fri Apr 11, 2008 5:38 am    Post subject: Reply with quote

here is what i got so far
http://www.autohotkey.com/forum/viewtopic.php?p=190028#190028
_________________
Read this
Com
Automate IE7 with Tabs
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group