Skip to content

Instantly share code, notes, and snippets.

@puentejose
Created August 9, 2020 00:29
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save puentejose/e97a979d11e592f3561c91a4ea06b679 to your computer and use it in GitHub Desktop.
Save puentejose/e97a979d11e592f3561c91a4ea06b679 to your computer and use it in GitHub Desktop.
AutoHotKey - Double Click Fix
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
*LButton::
If (A_PriorHotkey=A_ThisHotkey && A_TimeSincePriorHotkey < 10) ;hyperclick
Return
sendinput {Blind}{LButton down}
KeyWait, LButton
sendinput {Blind}{LButton up}
Return
*rButton::
If (A_PriorHotkey=A_ThisHotkey && A_TimeSincePriorHotkey < 25) ;hyperclick
Return
sendinput {Blind}{RButton down}
KeyWait, RButton
sendinput {Blind}{RButton up}
Return
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment