Looking for help - Mouse button down - Release on key press
Posted: 07 Apr 2024, 10:42
Years ago I found this
It was the only script that would on key press reliably hold the mouse button down and release on a second key press.
In v2 this no longer works although I saw GetKeyState.
Would it be possible to have that for both mouse buttons in one script executable, with different keys, of course?
This script was amazing for accessibility so any help would very appreciated
Code: Select all
#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.
l::Click % GetKeyState("LButton") ? "Up" : "Down"
In v2 this no longer works although I saw GetKeyState.
Would it be possible to have that for both mouse buttons in one script executable, with different keys, of course?
This script was amazing for accessibility so any help would very appreciated