Created
August 12, 2025 06:45
-
-
Save asd142513/f165717e3f78e115e3c702deed367e61 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#Requires AutoHotkey v2.0 | |
global inTimeout := false | |
LButton:: | |
{ | |
if !inTimeout { | |
Send("{LButton Down}") | |
} | |
} | |
LButton Up:: | |
{ | |
global inTimeout | |
if !inTimeout { | |
inTimeout := true | |
SetTimer(check_mouse, -50) | |
} | |
} | |
check_mouse() | |
{ | |
global inTimeout | |
if !GetKeyState("LButton", "P") { | |
Send("{LButton Up}") | |
} | |
inTimeout := false | |
} | |
^Esc:: | |
{ | |
ExitApp | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Reference: libinput, spurious mode