Jump to content

Timed Function


Recommended Posts

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

Link to comment
Share on other sites

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
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...