AutoHotkey: Disable Capslock

By Xah Lee. Date: . Last updated: .

Set Capslock State Off

SetCapsLockState, off

Disable Capslock

SetCapsLockState, off
$CapsLock::Return

Make Capslock Key Do Control

; make capslock key do Control
CapsLock::Ctrl
; make capslock key do menu
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.