Untitled
; This script makes Caps Lock act as a left mouse click ; Ctrl + Caps Lock will still toggle Caps Lock ; Prevent Caps Lock from toggling when it is used for clicking $CapsLock:: if GetKeyState("Control", "P") ; Check if Control is pressed { Send {CapsLock} ; Send Caps Lock toggle } else { Click ; Perform a left mouse click } return ; Allow normal Caps Lock functionality when not clicking $*CapsLock Up:: if !GetKeyState("Control", "P") ; If Control is not pressed { SetCapsLockState, % (GetKeyState("CapsLock", "T") ? "Off" : "On") ; Toggle Caps Lock state } return
Leave a Comment