It's my first time making a post, so you can correct me when needed.
Code: Select all
#NoEnv
#Persistent
#KeyHistory 0
#InstallKeybdHook
#SingleInstance Force
#MaxHotkeysPerInterval 9999
ListLines Off
SendMode Input
SetBatchLines -1
SetMouseDelay -1
SetKeyDelay -1, -1
Process, Priority, , H
SetWorkingDir %A_ScriptDir%
\::
while (GetKeyState("\", P)) {
DllCall("mouse_event", UInt, 2)
DllCall("Sleep", UInt, 1)
DllCall("mouse_event", UInt, 4)
DllCall("Sleep", UInt, 0)
} Return
|::
Reload
Pause
return
> Drastically reduced size of script by removing useless directives.