I want a script, that:
When I press down LShift and R at the same time, send G ("G1/2") one time. When I release R nothing special should happen and I want to keep press R while Shift down. When I release LShift, send G (G2/2) again.
So far my code does this if I press very carefully, but as soon as keys overlap, it gets stuck in the G1/2 state.
Is it possible to make "LShift up" always send G- no matter what?
Ty
Code: Select all
~LShift::
keyWait, r, "d"
send, g
KeyWait, LShift, "U"
sleep, 250
send, g
sleep, 250
[Mod edit: Moved topic from AHk v2 help to v1 help, since this is not v2 code.]