Yadullah Abidi Argues Why You Should Turn Caps Lock Into a Custom Shortcut Key
Customizing the Caps Lock Key With Twelve Lines of Code
In a column published on makeuseof.com, writer Yadullah Abidi argues that the Caps Lock key can be transformed into a useful modifier for custom keyboard shortcuts rather than serving solely as an accidental capitalization tool. Abidi details how he installed AutoHotkey and wrote a concise script to assign five distinct functions to the neglected key on a Windows system without sacrificing its native toggle capability.
- The configuration preserves the native Caps Lock function when pressed alone while enabling two-key combinations like Always-on-Top toggles and text case conversions.
- Text transformation shortcuts utilize the system clipboard temporarily to process strings before restoring the original clipboard data.
Implementing Five New Functions via AutoHotkey
According to the makeuseof.com report, the script leverages AutoHotkey’s custom-combination syntax to treat Caps Lock as a prefix key. This approach allows pressing Caps Lock alongside another letter to trigger an action completely distinct from pressing that letter alone. Abidi configured five specific shortcuts to bridge functional gaps in the Windows operating system: Caps Lock plus A toggles the active window’s Always-on-Top attribute using the WinSetAlwaysOnTop function; Caps Lock plus T inserts the current timestamp via the SendText function; Caps Lock plus U converts selected text to uppercase; Caps Lock plus L converts selected text to lowercase; and Caps Lock plus Q wraps selected text in quotation marks.
; AutoHotkey Custom Caps Lock Prefix Script Example
SetCapsLockState, AlwaysOff
#If GetKeyState("CapsLock", "P")
a::WinSet, AlwaysOnTop, Toggle, A
t::SendInput, %A_YYYY%-%A_MM%-%A_DD% %A_Hour%:%A_Min%
u::
Send, ^c
StringUpper, clipboard, clipboard
Send, ^v
return
l::
Send, ^c
StringLower, clipboard, clipboard
Send, ^v
return
q::
Send, ^c
clipboard = "%clipboard%"
Send, ^v
return
#If
Managing Clipboard State During Text Transformations
The text manipulation features require careful handling of the system clipboard to prevent data loss. As Abidi outlined on makeuseof.com, text shortcuts execute by copying the active selection to the clipboard, applying the case change or string wrapper, pasting the transformed text back into the application, and finally restoring the original clipboard contents. This background state restoration ensures the custom key bindings do not interfere with standard copy-and-paste workflows.
Evaluating Practical Workplace Utility
After returning to regular writing tasks, Abidi evaluated the real-world utility of each configured shortcut. The makeuseof.com article notes that Caps Lock plus A proved most practical for keeping reference windows visible beside active drafts without requiring manual window resizing. The timestamp insertion shortcut provided a straightforward method for logging process start times, while the case-conversion and quotation shortcuts eliminated the need to manually retype or format pasted text blocks across different applications.
Related reading
- iPhone 18 Pro Max vs Samsung Galaxy S26 Ultra Specs Compared
- Quantum dot in optical microcavity reaches 90% photon interference visibility
- Japan Society for the Study of Obesity says Mounjaro should not be used for rapid weight loss (newsy-today.com)
- Dakota Johnson Wears Custom Calvin Klein Gown at 2026 VMAs (time.news)