AutoHotkey: Disable Capslock

By Xah Lee. Date: . Last updated: .

For a easy solution without code, use Microsoft PowerToys

Disable CapsLock

SetCapsLockState, off

Make CapsLock Key Do Control

; make capslock key do Control
; make capslock key do menu/AppsKey

Disable Number Lock

SetNumLockState, on

Disable Scroll Lock

SetScrollLockState, off

Disable F1 Help


Instead of disable keys, it's better to set them to do something useful, such as switching app/window/tab, or copy cut paste.

AutoHotkey Tutorial

AutoHotkey logo nz9fX

Key Syntax

Useful Scripts