Thanks,
Code: Select all
KeyList1 := 1
SLEEP1 = 300
KeyList2 := 2
SLEEP2 = 1500
KeyList3 := Numpad7
SLEEP3 = 1000
KeyList4 = 1
KeyList5 = 1
KeyList6 = 1
KeyList7 = 1
KeyList8 = 1
CooldownList1 = 96000
CooldownList2 = 19700
CooldownList3 = 10000
KeyCount = 3
Loop
{
GetKeyState, state, 4
if state = D
{
Loop %KeyCount%
{
;tooltip, %A_Index%
k := KeyList%A_Index% ;<-- get the next key
If (KeyIsOffCooldown%A_Index% = True) ;<-- see if it's off cooldown
{
tooltip, "made it in"
Send, {%k%} ;<-- if so, send it
SLEEP, SLEEP%A_Index%
keyIsOffCooldown%A_Index% := False
SetTimer, KeyTimer%A_Index%, - CooldownList%A_Index%
}
sleep, 100
; and go to the next key
}
}
}
Return
KeyTimer1:
KeyIsOffCooldown1 := True
Return
KeyTimer2:
KeyIsOffCooldown2 := True
Return
KeyTimer3:
KeyIsOffCooldown3 := True
Return