Need to Hold A Key

Ask gaming related questions (AHK v1.1 and older)
Stylez80Nine
Posts: 2
Joined: 15 Mar 2018, 10:52

Need to Hold A Key

15 Mar 2018, 10:59

hey im asking for help i would like to make a script where everytime - i press F1 it press the number 5 it holds it down for 30ms. i need it to be in Ms please help and thanks in advance
User avatar
Nwb
Posts: 444
Joined: 29 Nov 2016, 08:56

Re: Need to Hold A Key

15 Mar 2018, 11:04

Code: Select all

$*F1::
Send, {5 down}
Sleep, 30
Send, {5 up}
return
anything else
I am your average ahk newbie. Just.. a tat more cute. ;)
Stylez80Nine
Posts: 2
Joined: 15 Mar 2018, 10:52

Re: Need to Hold A Key

15 Mar 2018, 11:14

Nwb wrote:

Code: Select all

$*F1::
Send, {5 down}
Sleep, 30
Send, {5 up}
return
anything else
hey for some reason its not working for the game i need it to
User avatar
Nwb
Posts: 444
Joined: 29 Nov 2016, 08:56

Re: Need to Hold A Key

15 Mar 2018, 11:15

Stylez80Nine wrote:
Nwb wrote:

Code: Select all

$*F1::
Send, {5 down}
Sleep, 30
Send, {5 up}
return
anything else
hey for some reason its not working for the game i need it to
Try this: https://autohotkey.com/boards/viewtopic.php?f=7&t=11084
I am your average ahk newbie. Just.. a tat more cute. ;)

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: No registered users and 67 guests