Recently I was playing helldivers and had the idea to try to make a hotkey script based on their stratagem system, in which a d-pad sequence could be inputted to have various hotkeys. I've been messing around with a script that barely works-ish, I was wondering if you guys could lend me a hand with this.
Here's the Helldivers thing i mentioned
https://helldivers.fandom.com/wiki/Stratagem_Codes
and heres my barely functioning script
Code: Select all
#NoEnv
SetWorkingDir %A_ScriptDir%
return
F12::
Check := true
SetTimer, CheckOff, 1000 ; 1 second to type in jkj
return
:*:jkj::
If Check
Send M
SoundBeep, 750, 500
return
CheckOff:
Check := false
return
Check := true
SetTimer, CheckOff, 1000 ; 1 second to type in jkk
return
:*:jkk::
If Check
SoundBeep, 1750, 500
return
Check := true
SetTimer, CheckOff, 1000 ; 1 second to type in jkl
return
Any ideas guys?