Summary

The one thing that Caps Lock has successfully done for me over the years is accidentally turn my perfectly normal sentences into SHOUTING. I almost never use it on purpose, and it’s taking up space on my keyboard. So after years of pretending it served a purpose, I actually made it worth the space. I installed AutoHotkey and used a few lines of code to create shortcuts for specific tasks that the Windows keyboard doesn’t usually do. It made enough of my everyday typing easier that I started wondering why I’d left the key untouched for so long. Caps Lock does something useful now I turned one neglected key into five shortcuts I actually use With the complete script, I gave Caps Lock five new functions: | Shortcut | What it does | |---|---| | Caps + A | Toggle Always on Top | | Caps + T | Insert the current timestamp | | Caps + U | Uppercase selected text | | Caps + L | Lowercase selected text | | Caps + Q | Put quotation marks around selected text | While it feels efficient to have five new keyboard shortcuts, the more interesting part is my Caps Lock has become a modifier for actions that I personally choose. AutoHotkey lets me use Caps Lock as the prefix key in a custom two-key combination. So pressing Caps Lock + A can produce an outcome totally different from pressing A alone. The easiest to understand of all the shortcuts that I created was Caps Lock + A. Once I bring a window into focus and press that combination, that window remains above the rest. Pressing it again removes the Always-on-Top attribute. The WinSetAlwaysOnTop function in AutoHotkey supports this kind of toggle behavior. Caps Lock + T inserts the current date and time into whatever application has focus, wherever my cursor is positioned. The script uses the SendText function to send the formatted timestamp to the active window, so I can use the shortcut wherever I’m typing. The clever part wasn’t AutoHotkey It was turning Caps Lock into a modifier Windows doesn’t use this way Rather than remapping Caps Lock, my script simply uses it as a prefix. It’s possible because AutoHotkey has a custom-combination syntax that lets two keys act as a single hotkey. This also means Caps Lock keeps its normal function when I press it by itself, so I didn’t sacrifice the key just to turn it into a shortcut key. Already the Windows key is a common modifier: Windows + E opens File Explorer and Windows + I opens the Settings app. I created combinations in the space not already taken by Windows’ built-in shortcuts: Caps Lock + A changes the active window’s Always-on-Top state. Caps Lock + T creates text that wasn’t there before. Caps Lock + U and Caps Lock + L change selected text, while Caps Lock + Q puts quotation marks around it. Text shortcuts have to use the clipboard for a brief moment because the script copies the selection, transforms the copied text, sends the result back into the active application, and then restores the clipboard. The last part of the process is important so the script doesn’t interfere with other things I copied. So, without replacing Caps Lock or changing what it does on its own, I turned it into a small keyboard layer for actions Windows doesn’t provide as general-purpose shortcuts. I stopped thinking about the shortcuts as tricks They became useful when I went back to writing It was only when I went back to normal work and wasn’t deliberately trying each combination that the real test started. I found Caps Lock + A to be the most practical immediately. I often need a reference window while I’m writing; just something sitting beside my draft. Pinning it is a simple solution that doesn’t require me to resize or rearrange windows. This is a small change, but I do it enough daily for it to make a real impact. For my notes, Caps Lock + T feels like a natural fit. I use it to record when I start a test or process, and if I just want the current date and time in my draft, it comes in handy. The case-conversion shortcuts may not be as flashy, but they are just as useful. When I paste an all-caps sentence, I now have a consistent way to convert it to lowercase across the apps I use. Caps Lock + Q is one of my favorites, even though I don’t use it as often as the others. The few times I have to turn a phrase into a quotation, selecting it and using a shortcut feels far easier than stopping to type quotation marks at either end. I notice the advantage most when the selection is a longer phrase or several words. The point was to fill the gaps, not reinvent the keyboard Windows already has a great set of shortcuts, so I left them alone—there isn’t a need to reinvent what already exists. This was actually what made this experiment interesting. I was looking for gaps that improved my workflow and addressed those gaps. None of the shortcuts I created were revolutionary, but that was the beauty. I created a setup that’s simple enough to copy and adapt, especially if you already use AutoHotkey. Adapting this, or building on it, may add more value to your workflow.

By Afam Onyimadu

Original Article