Code: Select all
#NoEnv
ListLines Off
Process, Priority, , A
SendMode Input
#Persistent
#MaxHotkeysPerInterval 99000000
#HotkeyInterval 99000000
;SetKeyDelay, -1
#InstallKeybdHook
#SingleInstance Force
down::
if (A_Priorhotkey = "right") and (A_TimeSincePriorHotkey < 120) and (threeofthree = 1)
threeofthree:= 2
else
threeofthree:= 0
return
right::
if (A_Priorhotkey = "down") and (A_TimeSincePriorHotkey < 150) and (threeofthree = 2)
threeofthree:= 3
else
sstime := A_TickCount
threeofthree:= 1
return
numpad1::msgbox %threeofthree%
I am making some kind of fighting game command .
Pressing Right > Down > Right and then a button (within 170ms) will send out something.
But the msgbox only return 0.1.2 of threeofthree... If the timing and flow of command is correct it should return 3 ... (I will use that(3) with sstime to confirm the final output)I wonder what is wrong with this , plz help