Code: Select all
CapsLock::
loop
{
while GetKeyState("LShift","P"){
Pause
}
send, {b DOWN}
sleep, 50
send, {b UP}
}
return
Basically i want an infinite loop to keep "b" pressed, but when i HOLD (not press) LShift the loop will PAUSE (not break).
So "b" is repeating in the loop -> hold LShift -> the loop pause -> Unhold LShift -> the loop work again
any ideas ? thanks