Jump to content

Recommended Posts

Posted

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

Posted

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?

Posted

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:

Hotkeys

Looping

Revisit and modify your script, and post back if your still stuck :)

Good luck ;)

-smartee

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...