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.
NOTE: To reduce spam, new users can not post links, files or images until they have at least 4 posts.
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 »

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: 7664
Joined: Sun Apr 06, 2003 11:12 pm

Re: Different actions on button pressed & release How?

Post 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
--[ Phil ]--
--[ Administrator & XMBC Author ]--
Logitech G9/G604/M720/MX518, Microsoft Intellimouse, Trust 16341 BT Mouse
Windows 10 x64, AMD Ryzen 5900x, MSI x570 Tomahawk, 32GB DDR4,
nVidia RTX 2070s, Evo 970 1Tb NVME, 2x2TB WD Black (RAID1)
Post Reply