Page 1 of 1

Different actions on button pressed & release How?

Posted: Fri May 25, 2018 3:35 pm
by pribyl007
Does anyone know how to simulate one keystroke(s) when mouse button is pressed and different keystroke(s) when mouse button is released?

(I would like to generate {F1} when I press the left mouse button and {LMB}+Q when the mouse button is released)

Re: Different actions on button pressed & release How?

Posted: Fri May 25, 2018 3:40 pm
by phil
In theory you should be able to do it with method 9, and use the {PRESS} and {RELEASE} tags but actually thats not quite how they were supposed to work. But, in 2.18 Beta (available in the beta thread here on the forums) you can do this with some new prefix tags in simulated keystrokes...

{OD} Only send when the button is pressed
{OU} Only send when the button is released
{OR} Only send when repeating

so something like: {OD}{F1}{OU}{LMB}{OU}s