Jump to content

Help with script - hold down keys


Recommended Posts

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 post
Share on other sites
  • Developers

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 post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...