HRRAX Posted September 12, 2006 Posted September 12, 2006 Okay, me im VERY a newbies so im very poor with autoit. I want to created a script that press "z" each 0.5 sec and "r" each 1 second those example: - press "s" - pause (0.5 sec) - press "s" -pause( 0.5 sec) -press "r" -pause (0.01 sec) and restart i hope im clear and thanks in advance ps: can you say me also how to run the script plz
Thatsgreat2345 Posted September 12, 2006 Posted September 12, 2006 while....wend , send, and sleep in the help file
HRRAX Posted September 13, 2006 Author Posted September 13, 2006 (edited) ive try to do a script with while... wend etci got thisWhile send("z") sleep(500) send("z") sleep(500) send("z") sleep(500) send("r") sleep(1) send("z") sleep(499) WEndand it right>"F:\Program Files\AutoIt3\beta\SciTE\..\autoit3.exe" /ErrorStdOut "C:\Documents and Settings\PropriƩtaire\Bureau\knight online.au3" C:\Documents and Settings\PropriƩtaire\Bureau\essais.au3 (1) : ==> Error in expression.: While While^ ERROR>Exit code: 0 Time: 0.218so i find how to do my script but he stop at the end.how can i do for it continue forever until i close it ????send("z") sleep(500) send("z") sleep(500) send("z") sleep(500) send("r") sleep(1) send("z") sleep(499) Edited September 13, 2006 by HRRAX
Kyler Carlson Posted September 13, 2006 Posted September 13, 2006 While 1 send("z") sleep(500) send("z") sleep(500) send("z") sleep(500) send("r") sleep(1) send("z") sleep(499) WEnd if i'm understanding you... this will work.
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