<

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

Posted on
12,206 Points
6 Views
2 Endorsements
Last Modified:
Experience Level: Intermediate
5:20
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 previous video Micro Tutorial here at Experts Exchange, I presented my CapsLockOSD program, which is a utility that constantly shows the state of the CapsLock key (ON or OFF) in the system tray. This video Micro Tutorial presents a modified version of CapsLockOSD with two enhancements: (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 do not require either of these new features, you may stick with the previous version of the program.

Note: The video does not demonstrate how to compile the AHK source code into an EXE file, so I've included Steps 5 and 6 below to explain that.

Video Steps

1. View previous EE video Micro Tutorial


This video assumes knowledge of the previous video. Please view it here:
On-Screen Display for CapsLock State (On or Off)

2. Download the enhanced CapsLockOSD program and the icon files


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

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

Put all four files in the same folder.

CapsLockOSD.ahk
CapsLockOSD.ico
CapsLockOFF.ico
CapsLockON.ico

3. Test the previous features


Test all the features of CapsLockOSD as shown in my previous video to confirm that they all work correctly in this enhanced version.

4. Test the new feature that starts CapsLockOSD with Windows


Right-click the CapsLockOSD icon, then left-click Start with Windows.

Right-click the CapsLockOSD icon again and confirm that the Start with Windows menu item is checked.

Restart Windows and confirm that CapsLockOSD is running.

5. Compile the CapsLockOSD program


Read my Experts Exchange article that explains how to compile AutoHotkey source code (an AHK file) into a stand-alone executable (an EXE file):
AutoHotkey - Getting Started

Use the "more compiling options" feature explained in that article so that you will have a custom icon for the EXE file, namely, the CapsLockOSD.ico that you downloaded in Step 2.

6. Test the EXE file


Put the EXE file on a different computer — one without AutoHotkey installed.

Run the EXE file on that other computer.

Test all the features, as you did with the AHK file, to confirm that the EXE file on the computer without AutoHotkey runs the same.

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

Featured Post

Expert Spotlight: Joe Anderson (DatabaseMX)

We’ve posted a new Expert Spotlight!  Joe Anderson (DatabaseMX) has been on Experts Exchange since 2006. Learn more about this database architect, guitar aficionado, and Microsoft MVP.

This article is a short story about a troublesome Intel Video Driver problem
This is an Article to assist users with Folder Sharing on modern computers, especially given the demise of Home Groups. It is a major rewrite of an article I wrote about five years ago for earlier computers

Keep in touch with Experts Exchange

Tech news and trends delivered to your inbox every month