Jump to content

Script Wait


Recommended Posts

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 :)

Link to comment
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!

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...