I'm working on a script that allows multiple instances (#SingleInstance off) and provides an option for a different color icon in the system tray for each instance (Menu,Tray,Icon,%ColorIcon%). The user has a choice of a dozen colors.
Environment is AHK v1.1.30.01 U32. The script will be compiled and used in an installer (Setup.exe) that must run on 32-bit and 64-bit W7, W8/8.1, and W10 (XP and Vista would be nice, but are not necessary).
The color (blue, green, red, yellow, etc.) is the first (and only) parameter to the script. The tray context menu is configurable by the user, but one of the menu choices is always Refresh context menu. When the user clicks that, my script does this:
Code: Select all
Run,%A_ScriptFullPath% /restart %Color%
Here's the question: Is there a way for my script to control the order (change the position) of its numerous color icons in the system tray?
Thanks much, Joe