con1 Posted August 16, 2008 Share Posted August 16, 2008 Hello, is there a way to send commands, like _IENavigate, _IEAction, _IEImgClick ... ... to an IEXLORE-window that was opened with a Run-Command? This Script does not work: #include <IE.au3> $IE = Run(@ProgramFilesDir & "\Internet Explorer\IEXPLORE.EXE") Sleep(1000) _IENavigate ($IE, "http://www.autoitscript.com/forum/index.php?") Thanks con1 Link to comment Share on other sites More sharing options...
Valuater Posted August 16, 2008 Share Posted August 16, 2008 (edited) This is the easy way... #include <IE.au3> $IE = _IECreate("http://www.autoitscript.com/forum/index.php?") however, you can use _IEAttach() 8) Edited August 16, 2008 by Valuater Link to comment Share on other sites More sharing options...
con1 Posted August 16, 2008 Author Share Posted August 16, 2008 hello, this script works, but it only navigate to msn.com then it just stops, why??? (tested on Vista, IE7) #include <IE.au3> Run(@ProgramFilesDir & "\Internet Explorer\IEXPLORE.EXE") WinWait("Blank Page - Windows Internet Explorer","Favorites Command Ba") If Not WinActive("Blank Page - Windows Internet Explorer","Favorites Command Ba") Then WinActivate("Blank Page - Windows Internet Explorer","Favorites Command Ba") WinWaitActive("Blank Page - Windows Internet Explorer","Favorites Command Ba") $OBJECT = _IEAttach ("Blank Page - Windows Internet Explorer", "embedded") _IENavigate ($OBJECT, "http://msn.com") _IELoadWait ($OBJECT) _IENavigate ($OBJECT, "http://google.com") _IELoadWait ($OBJECT) Link to comment Share on other sites More sharing options...
con1 Posted August 16, 2008 Author Share Posted August 16, 2008 got it... #include <IE.au3> Run(@ProgramFilesDir & "\Internet Explorer\IEXPLORE.EXE") WinWait("Blank Page - Windows Internet Explorer","Favorites Command Ba") If Not WinActive("Blank Page - Windows Internet Explorer","Favorites Command Ba") Then WinActivate("Blank Page - Windows Internet Explorer","Favorites Command Ba") WinWaitActive("Blank Page - Windows Internet Explorer","Favorites Command Ba") $oIE = _IEAttach ("", "instance",1) _IENavigate ($oIE, "http://msn.com/") _IELoadWait ($oIE) _IENavigate ($oIE, "http://google.com/") _IELoadWait ($oIE) 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