kaino Posted April 28, 2009 Posted April 28, 2009 Hello, I just got this program and need to know how to do these simple functions can someone please help me, here is what I want to do. send w wait 3 seconds send r wait 3 seconds hold v wait 10 seconds release v wait 2 seconds send r wait 3 seconds send 7 wait 2 seconds send n wait 10 seconds loop back to the beginning I know that all these functions are repetitive and you only really have to answer is, How to send a key How to wait x amount of time How to hold down a key How to release a key from being held loop to the beginning If I could get some help with this it would really be appreciated. Thank you!
Canasian Posted April 28, 2009 Posted April 28, 2009 Go here http://www.autoitscript.com/autoit3/docs/Look at functionsLook at these functions.Send()Sleep() ; its in millisecondsand here are your loop statements http://www.autoitscript.com/autoit3/docs/i.../lang_loops.htm
kaino Posted April 28, 2009 Author Posted April 28, 2009 (edited) Okay, here is what I got, I have tested it in notepad and it appears to work right, except how do I shut it down without ctrl-alt-del task manager? I mean like hitting esc or something to exit script completely not just the loop. $a = 1 while $a = 1 send("{w}") sleep(3000) send("{r}") sleep(3000) send("{v down}") sleep(10000) send("{v up}") sleep(3000) send("{r}") sleep(3000) send("{7}") sleep(3000) send("{n}") sleep(150000) WEnd Edited April 28, 2009 by kaino
Canasian Posted April 28, 2009 Posted April 28, 2009 (edited) create a exit button HotKeySet("{ESC}", "Close") Func Close() Exit EndFunc that should work Edited April 28, 2009 by Canasian
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