King Posted September 23, 2008 Posted September 23, 2008 Ok instead of pressing a button 12 times say i want to hold the button down for 12 seconds. For instance instead of doing this. Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000)
Szhlopp Posted September 23, 2008 Posted September 23, 2008 Ok instead of pressing a button 12 times say i want to hold the button down for 12 seconds. For instance instead of doing this. Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{Left Arrow}") Sleep(1000) Send("{a down}") ;Holds the A key down Sleep(12000) ; 12 Sec Send("{a up}") ;Releases the A key Send("{S 30}") ;Sends 30 'S' characters RegEx/RegExRep Tester!Nerd Olympics - Community App!Login UDFMemory UDF - "Game.exe+753EC" - CE pointer to AU3Password Manager W/ SourceDataFiler - Include files in your au3!--- Was I helpful? Click the little green '+'
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