XButton1 single/double click hotkeys Topic is solved

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
Guest

XButton1 single/double click hotkeys  Topic is solved

20 May 2018, 22:43

I'm trying to get XButton1 to act as a Ctrl button but input Enter when double clicked. Thing is I'm not exactly new to AutoHotkey and have tried to get it to work but the results are either only single or double click works, or Ctrl is stopped as soon as I press a second button making it useless as a modifier. A functioning script would be appreciated. Thanks!
_MarkR
Posts: 1
Joined: 20 May 2018, 20:41

Re: XButton1 single/double click hotkeys

21 May 2018, 12:21

Eventually I came up with what's actually a simple script that works perfectly:

XButton1::
if (A_PriorHotkey <> "XButton1" or A_TimeSincePriorHotkey > 300)
{
Send {Ctrl down}
KeyWait, XButton1
Send {Ctrl up}
return
}
Send {Enter}
return

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: Google [Bot], Joey5 and 183 guests