Need help with gaming script (mordhau)

Ask gaming related questions (AHK v1.1 and older)
Djambret
Posts: 1
Joined: 16 Jun 2021, 12:52

Need help with gaming script (mordhau)

Post by Djambret » 16 Jun 2021, 13:01

Hello, the game is mordhau, a medieval fps hackandslash.

Can someone help with the code, maybe like this:

If f1 is press and hold, then click leftmouse, delay for 500ms, press key v, delay again for 500ms, then repeat until the f1 is released.

Thanks alot
User avatar
mikeyww
Posts: 26857
Joined: 09 Sep 2014, 18:38

Re: Need help with gaming script (mordhau)

Post by mikeyww » 16 Jun 2021, 16:33

Code: Select all

$F1::
KeyWait, F1, T.4
If !ErrorLevel {
 Send {F1}
 Return
} Else SoundBeep, 1500
While GetKeyState("F1", "P") {
 Click
 Sleep, 500
 Send v
 Sleep, 500
}
SoundBeep, 1000
Return
Post Reply

Return to “Gaming Help (v1)”