Created
May 27, 2020 09:52
-
-
Save dakshin-k/b081d0844137f63a2f1a03335ba19051 to your computer and use it in GitHub Desktop.
AutoHotKey Script for Three finger Click and Drag gesture on Windows
This file contains 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
#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. | |
#SingleInstance force | |
drag_enabled := 0 | |
+^#F22:: | |
if(drag_enabled) | |
{ | |
Click up | |
drag_enabled := 0 | |
} | |
else | |
{ | |
drag_enabled := 1 | |
Click down | |
} | |
return | |
LButton:: | |
if(drag_enabled) | |
{ | |
Click up | |
drag_enabled := 0 | |
} | |
else | |
click | |
return | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For mouse dragging to work LButton should be written like this: