SteveIAM2010 Posted January 22, 2010 Share Posted January 22, 2010 I am looking to be able to display various htm pages 1 page after another....mypage1, then mypage2, then mypage3, etc The following worked nicely, opening and closing, but the IE window was not maximized: #include <IE.au3> $oIE = _IECreate ("mypage1.htm") Sleep(10000) _IEQuit ($oIE) This provided for a maximized window, but with each htm, a new IE session was opened: Run("C:\Program Files\Internet Explorer\IEXPLORE.EXE mypage1.htm","", @SW_MAXIMIZE) Sleep(10000) Any advise or direction to get the best of both of these together?? Thanks!! Link to comment Share on other sites More sharing options...
gimx Posted January 22, 2010 Share Posted January 22, 2010 (edited) Hello, _IENavigate don't work ? #include <IE.au3> $oIE = _IECreate ("mypage1.htm") Sleep(10000) _IENavigate ($oIE, "mypage2.htm") Sleep(10000) _IEQuit ($oIE) Edited January 22, 2010 by gimx Link to comment Share on other sites More sharing options...
PsaltyDS Posted January 22, 2010 Share Posted January 22, 2010 Add this to gimx's code to maximize: WinSetState(_IEPropertyGet($oIE, "hwnd"), "", @SW_MAXIMIZE) 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...
SteveIAM2010 Posted January 22, 2010 Author Share Posted January 22, 2010 Hi gmix....that does work for the single session..thank you!! I found the WinSetState("","",@SW_MAXIMIZE ) to get the window maxed: #include <IE.au3> $oIE = _IECreate ("mypage1.htm") WinSetState("","",@SW_MAXIMIZE ) Sleep(10000) _IENavigate ($oIE, "mypage2.htm") Sleep(10000) Thanks again for the reply!! Link to comment Share on other sites More sharing options...
SteveIAM2010 Posted January 22, 2010 Author Share Posted January 22, 2010 Thank you PsaltyDS....that is perfect...I'm lovin' AutoIt!! 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