Left Click as key preventing click and drag

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
absky322
Posts: 2
Joined: 16 Aug 2022, 00:10

Left Click as key preventing click and drag

Post by absky322 » 16 Aug 2022, 00:31

So basically I want to do something when left mouse button is clicked WITHOUT affecting the mouse clicking and dragging
I tried LButton:: and LButton Up::
both are preventing me from normal clicking and dragging sometimes
even if I add [MouseClick, Left] inside
another other solutions? Thank you in advance!!

Rohwedder
Posts: 7679
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: Left Click as key preventing click and drag

Post by Rohwedder » 16 Aug 2022, 01:43

Hallo,
try ~LButton:: and ~LButton Up::
Tilde: ~ prefix when the hotkey fires, its key's native function will not be blocked.
It makes pressing the key always both: The original function and the programmed.

Post Reply

Return to “Ask for Help (v1)”