Sign in to follow this  
Followers 0
shantred

Timed Function

4 posts in this topic

Hi guys, i'm new here, just started using autoit the other day. I have a game that i've been trying to create a simple auto for while i sleep. its called finalhero.com. It brings up my browser, and logs me in, and does a few things every 20 mins(there is a new turn every 20 mins) but the thing is...idk how to make it a continuous timer to run in the background of my machine to make it do this every 20 minutes. could someone possibly help me? i've checked the autoit help file and havn't found it much useful for me on this.

~thanks in advance

Shantred

Share this post


Link to post
Share on other sites



#3 ·  Posted (edited)

thanks a lot. :o i cant believe i couldnt' get that. though one thing i want to ask. will that happen once or continuously?

also, is 200000 20 minutes?

Edited by shantred

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

The While 1/Wend (known as an infinite while loop) allows the script to continue running and executing all the commands inside the loop until the script is closed (via manually shutting down the script, or a hotkey pointing to an exit function), or a condition is met that leads to the ExitLoop command.

Keep reading the helpfile. It's helpful.

You can always do this to make sure you have the right amount of time. Sleep (20*60*1000) ; -> 20 minutes at 60 seconds per minute at 1000 milliseconds per second.

Edited by greenmachine

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