I'm using the 3 finger drag script and another script in the same ahk, the problem is when I'm connected to a mouse at home, I can't use the mouse to drag the file as long as this script is running. I want only the 3 finger drag part of the script is disabled during the period of time that my mouse is connected. Thanks!
My script as follow:
#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.
--zoom with page up and down PgUp:: Send, {CTRLDOWN}{+} PgDn:: Send, {CTRLDOWN}{-}
--3 finger drag #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