Different actions on button pressed & release How?

x64 Replacement/Alternative to Microsoft's IntelliMouse application.
Forum rules
Please read the forum rules before posting for the first time.
The more information you can provide, the quicker and more accurately someone can help.
Post Reply
pribyl007
New User
Posts: 1
Joined: Fri May 25, 2018 2:25 pm

Different actions on button pressed & release How?

Post by pribyl007 » Fri May 25, 2018 3:35 pm

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)

User avatar
phil
Site Admin
Posts: 5503
Joined: Sun Apr 06, 2003 11:12 pm

Re: Different actions on button pressed & release How?

Post by phil » Fri May 25, 2018 3:40 pm

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
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9, Logitech MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, Intel i5-6600k, Asus 170-A, 16GB DDR4,
nVidia GeForce GTX 970, 2xEvo 850 (RAID 0), 2x2TB WD Black (RAID1)

Post Reply