Skip to content

Instantly share code, notes, and snippets.

@peheje
Last active December 9, 2023 23:07
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save peheje/aaaafcf9312ff2b97c6d2558fa3d2900 to your computer and use it in GitHub Desktop.
Save peheje/aaaafcf9312ff2b97c6d2558fa3d2900 to your computer and use it in GitHub Desktop.
Windows AHK touchpad script for three finger drag lock
; Use AHK v2.0. In Windows set Touchpad settings > Advanced Gestures > Configure three-finger gestures > Tap: Middle mouse button
; Then use this AHK script:
toggle := false
#HotIf toggle
LButton::
{
Click "Up"
global toggle
toggle := false
}
#HotIf
MButton::
{
global toggle
toggle := !toggle
if toggle
Click "Down"
else
Click "Up"
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment