On-Screen Display for CapsLock State (On or Off)

Posted on
10,008 Points
Last Modified:
Experience Level: Beginner
Joe Winograd
50+ years in computer industry •Everything from development to sales •CIO •Windows •Document Imaging •EE MVE 2015,2016,2018 •EE FELLOW 2017
In a thread here at Experts Exchange, a member posted this question:
I use a wireless keyboard. I need a utility that will constantly display the state of the caps lock key on my monitor. ... Can anyone recommend a program that will accomplish this for me?
The AutoHotkey program that I present in this video (called CapsLockOSD) accomplishes the task.

Update on 19-May-2019: I enhanced CapsLockOSD with two features: (1) the ability to create a stand-alone executable (an EXE file) that can run on a system without AutoHotkey installed and (2) an option to run automatically whenever Windows starts. If you require either of these new features, please visit my new video Micro Tutorial:

On-Screen Display for CapsLock State (On or Off) - Enhanced

However, please view this video first, as it lays the groundwork for the new video. Of course, if you do not require either of the new features, you may stick with the version presented in this video.

Video Steps

1. Download and install AutoHotkey

If you do not already have AutoHotkey installed, read this Experts Exchange article:
AutoHotkey - Getting Started

2. Download the CapsLockOSD program and the icon files

Download the plain text CapsLockOSD.ahk file attached to this Step.

Download the CapsLockOFF.ico and CapsLockON.ico icon files attached to this Step.

Put all three files in the same folder.


3. Run the CapsLockOSD program

In Windows/File Explorer (or whatever file manager you use), double-click the CapsLockOSD.ahk file to run it.

The above works because a standard installation of AutoHotkey (done in Step 1) associates the AHK file extension with the AutoHotkey program.

4. Test Toggling CapsLock

Left-click the CapsLockOSD icon in the system tray — confirm that CapsLock changed state and that the tray icon and tray tip are correct.

Press the CapsLock key on the keyboard — confirm that CapsLock changed state and that the tray icon and tray tip are correct.

Right-click the CapsLockOSD icon, then left-click Toggle CapsLock — confirm that CapsLock changed state and that the tray icon and tray tip are correct.

5. Test Exiting CapsLockOSD

Right-click the CapsLockOSD icon, then left-click Exit — confirm that CapsLockOSD terminated.

That's it! If you find this video to be helpful, please click the thumbs-up icon below. Thank you for watching!

Featured Post

Become a Certified Penetration Testing Engineer

This CPTE Certified Penetration Testing Engineer course covers everything you need to know about becoming a Certified Penetration Testing Engineer. Career Path: Professional roles include Ethical Hackers, Security Consultants, System Administrators, and Chief Security Officers.

Installing a new SSD drive and starting again with Windows 10
An EE member wants to move all open windows at once (not one window at a time) from a primary monitor to a secondary one by pressing a hotkey. Bonus: another hotkey that goes in the other direction — move all windows from the secondary to the primar…

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month