Skip to content

Instantly share code, notes, and snippets.

@asd142513
Created August 12, 2025 06:45
Show Gist options
  • Save asd142513/f165717e3f78e115e3c702deed367e61 to your computer and use it in GitHub Desktop.
Save asd142513/f165717e3f78e115e3c702deed367e61 to your computer and use it in GitHub Desktop.
#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
}
@asd142513
Copy link
Author

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment