Code: Select all
Capslock::
{
Send {RButton Down}
;ensuring that the player doesn't interfere with the macro
Send {SC011 Up} ;W
Send {SC01E Up} ;A
Send {SC01F Up} ;S
Send {SC020 Up} ;D
Send {SC021 Up} ;F
;the actual inputs
Send {Space Down}
DllCall("kernel32.dll\Sleep", "UInt", 20)
Send {SC020 Down}
Send {Space Up}
Send {SC020 Up}
Send {3 Down}
DllCall("kernel32.dll\Sleep", "UInt", 20)
Send {SC01F Down}
Send {Space Down}
Send {3 Up}
DllCall("kernel32.dll\Sleep", "UInt", 20)
Send {Space Up}
Send {SC01F Up}
;ensuring that the macro doesn't interfere with the player
if GetKeyState("SC011","P")
Send {SC011 Down}
if GetKeyState("SC01E","P")
Send {SC01E Down}
if GetKeyState("SC01F","P")
Send {SC01F Down}
if GetKeyState("SC020","P")
Send {SC020 Down}
if GetKeyState("SC021","P")
Send {SC021 Down}
DllCall("kernel32.dll\Sleep", "UInt", 0)
if GetKeyState("RButton","P")
Send {Click Right Down}
else
Send {Click Right Up}
Loop,1
{
if not GetKeyState("Capslock","P")
break
Send {Click Right Down}
}
return
return
}
Capslock Up::
{
Send {RButton Up}
}
return