Last active
December 9, 2023 23:07
-
-
Save peheje/aaaafcf9312ff2b97c6d2558fa3d2900 to your computer and use it in GitHub Desktop.
Windows AHK touchpad script for three finger drag lock
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
; 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