AutoHotkey: Disable Capslock

By Xah Lee. Date: . Last updated: .

For a easy solution without code, use Microsoft PowerToys

Disable CapsLock

SetCapsLockState, off
$CapsLock::Return

Make CapsLock Key Do Control

; make capslock key do Control
CapsLock::Ctrl
; make capslock key do menu/AppsKey
CapsLock::AppsKey

Disable Number Lock

SetNumLockState, on
$NumLock::Return

Disable Scroll Lock

SetScrollLockState, off
$ScrollLock::Return

Disable F1 Help

#F1::Return

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