shantred Posted March 6, 2006 Share Posted March 6, 2006 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 More sharing options...
Oxin8 Posted March 6, 2006 Share Posted March 6, 2006 Look at the Sleep function and While and WEnd. While 1 Sleep(10000) Msgbox(0,"HIYO!","This message box pops up every 10 seconds. Pretty annoying, huh?") WEnd ~My Scripts~ *********_XInput UDF for Xbox 360 ControllerSprayPaint_MouseMovePlus Link to comment Share on other sites More sharing options...
shantred Posted March 6, 2006 Author Share Posted March 6, 2006 (edited) thanks a lot. 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 March 6, 2006 by shantred Link to comment Share on other sites More sharing options...
greenmachine Posted March 6, 2006 Share Posted March 6, 2006 (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 March 6, 2006 by greenmachine Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now