I wanna personally RDown to trigger Subroutine with onevent, but when leave Subroutine i wanna have blocked auto triggering this onevent for 8 sec. without blocking other onevent key's. This is not my first attempt, but it only gets worse with time.
I even considered BlockInput> for a while when"OnEvent>KEY_DOWN,VK02,0," trigger... but I'd rather avoid it.
Code: Select all
// random code with some options
....
....
....
// other keys I can use and wanna use when R button is unactive.
OnEvent>...
OnEvent>...
// Is one of the possibilities I tried for active/unactive
let>r=false
label>loop_rdown
OnEvent>KEY_DOWN,VK02,0,rdown
if>r=false,loop_rdown
// No triggering event for Right mouse button with loop enabling use other onevent keys
OnEvent>KEY_DOWN,VK02,0,
// simple repeat instead of a some counter + change r=true for false
let>x=0
Repeat>x
let>x=x+1
until>x=8
r=false
goto>loop_rdown
srt>rdown
let>r=true
...
// fast code take 1sec and I wanna do not repeat it less than
...
end>rdown
// Other OnEvent keys
srt>...
...
end>...
srt>...
...
end>...