Guest BfarM00 Posted August 27, 2004 Posted August 27, 2004 (edited) I've been trying to make a script that will do an action repeatedly, but after a certain amount of time it will stop and another action will take place, then after that, repeat the 1st action. This is just an example of what I've tried. If $abcd = 1 Then Do Send("{G}") $abc = 1; Until $abc = 1; Sleep(5000) Do Send("{W}") $abcd = 1; Until $abcd = 1; So i want it to send the letter G for 5 seconds, then start to send W once, then after that start sending G for another 5 seconds, and so on and so on. Or after it has sent G a certain number of times, it will send W, then send G some more. Any advice would be greatly appreciated. Edited August 27, 2004 by BfarM00
trids Posted August 27, 2004 Posted August 27, 2004 (edited) ;So i want it to send the letter G for 5 seconds, While 1 $nTimer = TimerStart() While TimerStop($nTimer) < 5000 Send("g") sleep(10); so the CPU doesn't melt;o) Wend ;then start to send W once, Send("w") ;then after that start sending G for another 5 seconds, and so on and so on. WendEdit: fixed indentation Edited August 27, 2004 by trids
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