I'm looking to make the right mouse button send a single keystroke on DOWN, and another separate, single keystroke on UP.
"Pseudo-code" example, where pressing down right mouse button toggles an eyedropper tool by sending its hotkey (i), and releasing right mouse button sends the hotkey for brush (b):
RButton down::
Send i ; Send eyedropper hotkey
RButton up::
Send b ; Send brush hotkey
I understand from other questions asked that a while loop using GetKeyState could get part way there, but the while loop causes the key to fire rapidly, which is not desired.
How do I make the right mouse button send its corresponding up/down hotkey only once on up/down?