I dont want it to do that. I want a at least a 1 second delay before the next button is pressed if 4th and 20th or 18th second occurs at the same.
Also the second problem i have is. I want the script to ignore all other input when it is time to press the button. I have tired the blockinput function but it doesnt work correctly for me. For example if i am holding down the W button and the blockinput command comes on the W button stays pressed forever which is really weird and i dont know what to do about that. So is their another function like blockinput.
Please use an example or edit on my script because i am really new to using AHK.
Thank you
Code: Select all
z::
RepeatKey := !RepeatKey
If RepeatKey
{
SetTimer, SendTheKey1, 4000
SetTimer, SendTheKey3, 20000
SetTimer, SendTheKey2, 18000
}
Else
{
SetTimer, SendTheKey1, Off
SetTimer, SendTheKey3, Off
SetTimer, SendTheKey2, Off
}
Return
SendTheKey1:
SendInput 4
Return
SendTheKey3:
SendInput 3
sleep 800
Return
SendTheKey2:
SendInput 5
sleep 800
Return