Sign in to follow this  
Followers 0
Rydextillxixdiex

Script Wait

2 posts in this topic

I'm trying to create a script that runs in the background and waits until a certain webpage is accessed by the user to begin doing its job. I haven't a clue where to start in order to tell it to wait for the webpage to be opened, any help is appreciated.


...will never learn all there is to know about autoit, no worries...i came to the forums :)

Share this post


Link to post
Share on other sites



I'm trying to create a script that runs in the background and waits until a certain webpage is accessed by the user to begin doing its job. I haven't a clue where to start in order to tell it to wait for the webpage to be opened, any help is appreciated.

winactive() should do what you want.

while 1
if winactive("Title of the page","Some typical text of the page, optional") then
 exitloop
else
 sleep(100)
endif

wend

Regards, Rudi.


Earth is flat, pigs can fly, and Nuclear Power is SAFE!

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