Ctrl + dbl-click as a hotkey? Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
StefOnSteroids
Posts: 77
Joined: 08 Aug 2015, 10:22

Ctrl + dbl-click as a hotkey?

05 Mar 2023, 17:04

I have been racking my brain how to use Ctrl+DoubleClick as a trigger:

^LButton:: .... works nicely, but how do I accomplish a double-click instead of a single click?
User avatar
mikeyww
Posts: 27262
Joined: 09 Sep 2014, 18:38

Re: Ctrl + dbl-click as a hotkey?  Topic is solved

05 Mar 2023, 17:23

Code: Select all

#Requires AutoHotkey v1.1.33
^LButton::
If (A_ThisHotkey = A_PriorHotkey && A_TimeSincePriorHotkey < 300)
 SoundBeep 1500
Return
StefOnSteroids
Posts: 77
Joined: 08 Aug 2015, 10:22

Re: Ctrl + dbl-click as a hotkey?

05 Mar 2023, 18:00

Wow. There is no way I could have that figured out. Ever. :shock:
How do you arrive at such a solution? This should be included in the help file.

Can I ask you one more favor? What would it look like in v2?
User avatar
mikeyww
Posts: 27262
Joined: 09 Sep 2014, 18:38

Re: Ctrl + dbl-click as a hotkey?

05 Mar 2023, 18:52

I, too, would not have known. I saw it in someone else's post. ;)

Code: Select all

#Requires AutoHotkey v2.0
^LButton:: {
 If A_ThisHotkey = A_PriorHotkey && A_TimeSincePriorHotkey < 300
  SoundBeep 1500
}
StefOnSteroids
Posts: 77
Joined: 08 Aug 2015, 10:22

Re: Ctrl + dbl-click as a hotkey?

05 Mar 2023, 23:57

Thank you. Much appreciated. :angel:

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: a_riva, arrondark, Bing [Bot], Google [Bot], mikeyww, Xeilous, Zedcars and 219 guests