syber Posted July 8, 2011 Share Posted July 8, 2011 Hi, I am trying to create a script to hold down the 'D' key for 4 seconds before release and then holding down the 'A' key for another 4 seconds before release. This will start when i press F1 and will keep looping until i press F1 again (or another key) to stop it. I am really a newbie at this, but tried the script below. Can someone please help me to edit this please??? Thanks so much. $F1:: Loop {Send("{D down}") Sleep(4000) Send("{D up}") Send("{A down}") Sleep(4000) Send("{A up}") } return Link to comment Share on other sites More sharing options...
JohnOne Posted July 8, 2011 Share Posted July 8, 2011 So what happens, when you run it? What does the output from SciTE say? AutoIt Absolute Beginners Require a serial Pause Script Video Tutorials by Morthawt ipify Monkey's are, like, natures humans. Link to comment Share on other sites More sharing options...
Developers Jos Posted July 8, 2011 Developers Share Posted July 8, 2011 Pretty sure that AutoIt3 will throw some errors for this none AutoIt3 script. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
syber Posted July 8, 2011 Author Share Posted July 8, 2011 So what happens, when you run it?What does the output from SciTE say?error parsing function call....Can someone be helpful enough to change this script for me plese? Link to comment Share on other sites More sharing options...
Developers Jos Posted July 8, 2011 Developers Share Posted July 8, 2011 error parsing function call....Can someone be helpful enough to change this script for me plese?As said... this is NOT an AutoIt3 script. SciTE4AutoIt3 Full installer Download page - Beta files Read before posting How to post scriptsource Forum etiquette Forum Rules Live for the present, Dream of the future, Learn from the past. Link to comment Share on other sites More sharing options...
smartee Posted July 8, 2011 Share Posted July 8, 2011 Hi syber,Welcome to the forums !! Take a couple moments to peruse the help-file and Wiki to get a general idea of AutoIt's syntax, then take a look at these pages:HotkeysLoopingRevisit and modify your script, and post back if your still stuck Good luck -smartee 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