Hello, I wanted to make a script where when I press F2, it presses Insert for an infinite amount at 50ms interval, and for F3 it presses End for an infinite amount at 50ms interval, but when i press the F2 it also cancels the F3 function and when i press the F3 it also cancels the F2 function, can someone help with the script pls ? thanks before
Code: Select all
F2::
SetTimer, PressTheKey, % (toggle:=!toggle) ? : "Off"
Return
PressTheKey:
Send, {Insert}
Sleep 50
Send, {Insert}
Return
F3::
SetTimer, PressTheKey2, % (toggle:=!toggle) ? : "Off"
Return
PressTheKey2:
Send, {End}
Sleep 50
Send, {End}
Return