My question is how to detect if an Internet Explorer Window has already been created via the ComObjCreate ?
Once loaded with the command
Code: Select all
Pwb := ComObjCreate( "InternetExplorer.Application" )
Here is my code for loading an executable file via Window's File Dialog Box:
Code: Select all
F9::
Pwb := ComObjCreate( "InternetExplorer.Application" ) ; Creates the ComObj
Pwb.Navigate("http myurl.com ") ; Navigates to Url
Pwb.Visible := True ; Shows the IE app
While ( Pwb.Busy || Pwb.ReadyState != 4 ) ; Waits for the webpage to finish loading
Sleep 10 ; |
value := "" ; Creates the variable ( not needed )
value := Pwb.document.getElementsByTagName("input")[0].OuterHTML ; Goes to the Element's Index
Pwb.document.getElementsByTagName("input")[0].focus() ;Sets Focus on the Element
Send ,{Space}
Sleep 200
;Pastes Clipboard text with the Executable Directory Path to File Dialog Box
Send, %clipboard%
;Enters Executable File Directory Path in Dialog Box and Loads the Executable File
Send, {Enter}
Thank You Very Much.