Jump to content
Sign in to follow this  
SteveIAM2010

Calling IE

Recommended Posts

SteveIAM2010

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!!

Share this post


Link to post
Share on other sites
gimx

Hello,

_IENavigate don't work ?

#include <IE.au3>
$oIE = _IECreate ("mypage1.htm")
Sleep(10000)
_IENavigate ($oIE, "mypage2.htm")
Sleep(10000)
_IEQuit ($oIE)
Edited by gimx

Share this post


Link to post
Share on other sites
SteveIAM2010

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!!

Share this post


Link to post
Share on other sites
SteveIAM2010

Thank you PsaltyDS....that is perfect...I'm lovin' AutoIt!!

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
Sign in to follow this  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.