Can anybody please help with this problem.
I am opening up a website using the code below but in some cases it may already be open and would like to know how to check 1st if open and if so use the one that is already open
When I run the code below it keeps opening new browser window?
Code: Select all
If !IsObject(ie)
ie := ComObjCreate("InternetExplorer.Application")
ie.Visible := True
ie.Navigate("MyUrl")
IELoad(ie)
IELoad(ie)
{
While !(ie.busy)
Sleep, 100
While (ie.busy)
Sleep, 100
While !(ie.document.Readystate = "Complete")
Sleep, 100
}