I am trying to input values into controls using com. Which I can do if I open up a pointer with a new IE window set the value. But when I use IEGet and IELoad for some reason in IE 11 it does not work. I tried manipulating the titles to match but that did not work. Any help would be appreciated.
Does anyone have an updated IEGet and IELoad for IE 11?
IEGet(Name="") ;Retrieve pointer to existing IE window/tab
IfEqual, Name,, WinGetTitle, Name, ahk_class IEFrame
Name := ( Name="New Tab - Windows Internet Explorer" ) ? "about:Tabs"
: RegExReplace( Name, " - (Windows|Microsoft) Internet Explorer" )
For wb in ComObjCreate( "Shell.Application" ).Windows
If ( wb.LocationName = Name ) && InStr( wb.FullName, "iexplore.exe" )
IELoad(wb) ;You need to send the IE handle to the function unless you define it as global.
If !wb ;If wb is not a valid pointer then quit
Loop ;Otherwise sleep for .1 seconds untill the page starts loading
Loop ;Once it starts loading wait until completes
Loop ;optional check to wait for the page to completely load
Until (wb.Document.Readystate = "Complete")