sdfg4545 Posted August 6, 2009 Share Posted August 6, 2009 How can I get the handle of a IE window (browser) that pops up after login to the site? //****************************** $oIE = _IECreate ("https://ssl.accesstocare.on.ca/") $oForm = _IEFormGetObjByName ($oIE, "f") ;run("C:\Program Files\Internet Explorer\IEXPLORE.EXE https://ssl.accesstocare.on.ca/") Winwaitactive("Better Access To Care - Windows Internet Explorer") Sleep(5000) Send("username{TAB}") Send("password") _IEFormSubmit ($oForm) WinWaitActive(">> Better Access To Care - Windows Internet Explorer") ----- NEW BROWSER WINDOW!!!! HELP HERE!!!!! That login will cause a new browser to open: ">> Better Access To Care - Windows Internet Explorer" I need to get that new browser in an object, so I can click a link in it. --- this line wont work $oNewBrwsrWindow= _IEGetObjByName ($oIE, ">> Better Access To Care - Windows Internet Explorer") --- this line will work, but what to put as first parameter????? _IELinkClickByText ($oNewBrwsrWindow, "Wait Time Information Systems (WTIS)") Link to comment Share on other sites More sharing options...
PsaltyDS Posted August 6, 2009 Share Posted August 6, 2009 _IEAttach() >_< Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now