Sign in to follow this  
Followers 0
Iluvatar

Waiting for a window to be open

3 posts in this topic

Hello,

First I want to apologize for my eventually poor english and my low level in autoit scripting.

I want to write a script that is always running. Whenever a specific window is opened (a particular web page in IE7), the script will do things.

But i don't know how to wait for this window to open.

Thx

Greg

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

While 1

If WinActive("win title","") Then
     ; do things
EndIf

WEnd

you can also use WinWaitActive() but that will pause the script until the window is active

Edited by kip

Share this post


Link to post
Share on other sites

Thanks a lot.

Now I think i'll be able to go further.

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