Help with auto keypress script

Ask gaming related questions (AHK v1.1 and older)
somberstrekking
Posts: 1
Joined: 15 Jun 2017, 22:14

Help with auto keypress script

15 Jun 2017, 22:23

Code: Select all

F1::
If Switch := Not Switch
{
    TheTime := 0
    SetTimer TheLoop, 15
} Else
    SetTimer TheLoop, Off
Return

TheLoop:
Send {LCtrl down}x{LCtrl Up}
TheTime ++
If TheTime >= 300
{
    SetTimer TheLoop, Off
    Switch := False
}
Return
Looking to make the script press Ctrl + x rapid fire in game. I read that 15 ms is the lowest you should set the press for gaming. So the above is what I have attempted thus far but it doesn't seem to work in game whatsoever. Any help is appreciated (I do have the game in windowed).

Mod edit: added code tags.

Return to “Gaming Help (v1)”

Who is online

Users browsing this forum: Google [Bot] and 66 guests