Could someone help me with AutoHotKey Macro to have Q button pressed and released when right mouse button is clicked and Q button pressed and released when right mouse button is released?
Edit:
Explanation, imagine, that I am playing a game, and when i click right mouse button down (then I hold it) i need to have Q letter auto pressed on the keyboard, so I would get a jump(or crouch) in game at that time and when i release the right mouse button (mouse button up) i would get Q auto pressed again.
I was trying to write the script and I couldn't get it working.
This is what I came up so far:
RButton::
If !Toggler {
Send, {RButton Down} q
Return
}
Send {RButton Up} q
Return