How do I make a Helldivers-Like Hotkey script?

Ask gaming related questions (AHK v1.1 and older)
CrimsonAlpine
Posts: 1
Joined: 18 Aug 2022, 19:08

How do I make a Helldivers-Like Hotkey script?

Post by CrimsonAlpine » 18 Aug 2022, 19:13

Howdy,

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
It mainly relies on me mapping my dpad to f12 and JKL and is very hit or miss.

Any ideas guys?

Return to “Gaming Help (v1)”