Sign in to follow this  
Followers 0
mabsey

Handling Statusbartext?

3 posts in this topic

Please Help,

This is what I got so far

---------------------------------------------------------------------------

Run("C:\\Program Files\\Internet Explorer\\iexplore.exe www.mysite.com", "", @SW_MAXIMIZE)

Sleep(5000)

AutoItSetOption("WinTitleMatchMode", 2)

$x = StatusbarGetText("Internet Explorer")

---------------------------------------------------------------------------

Now this is what I want to say :-

While $x is not equal to opening page, do nothing and loop back, else minimize the page.

Basically this is how I want it to work :-

The script opens www.mysite.com

I click a link on mysite.com

The statusbartext changes and say's "opening page, blah blah"

Autoit detects this and minimises the IE window

If auto does not see opening page, it loops till it does.

I'm struggling with the loop and detection.

Any pointers?

Mabsey

Share this post


Link to post
Share on other sites



Thanks Larry, I've put a few mod's on this and it works perfect now.

Can I be cheeky and ask another question.

It's to do with Internet Explorer Windows Handling. After my script run's and it minimises 3 internet explorer windows, how does it track them? If I want to bring up the first window and load another link, is this easy? Really what I'm looking for is rolling windows?

Mabsey

Share this post


Link to post
Share on other sites

I've got this now :-

The script opens 3 internet explorer windows and minimizes them to the tray

$A is a simple count routing, so A$ = 1 , then A$ = A$ +1

As it's opening the IE windows I declare this :-

$handle[$A] = WinGetHandle("classname=Internet Explorer")

I take it the line above should create 3 variable now called $handle1 , $handle2 and $handle3

I've searches the forums and looked at the help file, but I can't work out how to Maximize IE window 1 which has the variable $handle1

I take it I would use Winsetstate, but how to put the variable in the command line?

Many Thanks

Mabsey

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  
Followers 0