How can I use LButton Up state as a Hot Key Topic is solved

Get help with using AutoHotkey and its commands and hotkeys
koken
Posts: 6
Joined: 14 Sep 2020, 01:48

How can I use LButton Up state as a Hot Key

14 Sep 2020, 02:00

I want to use the Left Mouse Buttton down state as a hotkey to run a certain command. Such as When I will click and hold the LButton it will select a file as normal but when I will release the LButton it will work as Right click. Any Help Is Appreciated. Thanks... :)
Rohwedder
Posts: 3496
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: How can I use LButton Up state as a Hot Key  Topic is solved

14 Sep 2020, 02:30

Hallo,
perhaps this:

Code: Select all

~*LButton Up::Click, Right
or that:

Code: Select all

~*LButton::
KeyWait, LButton
IF A_TimeSinceThisHotkey  > 400 ;hold LButton > 0.4 sec.
	Click, Right
Return
koken
Posts: 6
Joined: 14 Sep 2020, 01:48

Re: How can I use LButton Up state as a Hot Key

15 Sep 2020, 16:18

Thanks... It worked! Thanks again!

Return to “Ask For Help”

Who is online

Users browsing this forum: boiler, DavidP, f1ster, HiSoKa, sofamat, XMCQCX and 59 guests