Change Script Features on the Fly with the Windows System Tray Icon Context Menu (AutoHotkey Tip)

Dynamically Switch the Actions of a Running AutoHotkey Script with a Simple Click of a System Tray Right-Click Menu Item

From Rick Corbett:

Hi, Jack,

Talking of “Adding Actions to Windows System Tray Icon Menu“, perhaps you would consider writing about using—for example—ToggleCheck, MenuItemName to amend a running script dynamically, i.e. change something (like toggling logging to a file versus a MsgBox), then reload.

*          *          *

AutoHotkey Library Deal
AutoHotkey Library Deal

That’s an excellent question, Rick! Often, after loading a script,  we want to either turn features off and on or change how they function. Adding separate Hotkeys or rewriting scripts becomes wearisome. But, what if we could add a feature to the Windows System Tray Icon Context Menu (right-click) which either toggles an action on and off or completely changes how it works? AutoHotkey offers a straightforward way to get it done. Continue reading

Adding Actions to Windows System Tray Icon Menu (Intermediate AutoHotkey Tip)

Adding Hard-to-Remember Hotkeys to the AutoHotkey System Tray Icon Makes Sense—Plus, How to Best Activate the Last Window

I’ve put my MousePrecise AutoHotkey script on my own list of favorites. I like the mouse cursor accuracy it adds to any of my graphic applications. I find it particularly useful when selecting a portion of an image for cropping or moving.

However, I recently ran into an issue where the script stopped working in Paint.NET (more details on the source of the problem later in this blog). I tried reloading the script, but to no avail. I decided to use the Hotkey I implemented for adding the window class to the group (GroupAdd command). Humm…I couldn’t recall the key combination. This lapse of memory forced me to open the script and dig through the code. Continue reading