XButton1 single/double click hotkeys Topic is solved
XButton1 single/double click hotkeys Topic is solved
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!
Re: XButton1 single/double click hotkeys
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
XButton1::
if (A_PriorHotkey <> "XButton1" or A_TimeSincePriorHotkey > 300)
{
Send {Ctrl down}
KeyWait, XButton1
Send {Ctrl up}
return
}
Send {Enter}
return
Who is online
Users browsing this forum: ArkuS and 340 guests