(Image and links removed as they were hosted at the now defunct autohotkey.net)
ListIncludes.ahk (placed in function library)
Menu Icons v2
AutoHotkey v1.0 or v1.1 ANSI/Unicode 32-bit. 64-bit is not supported.
Several options can be set at the top of AHKControl.ahk, including hotkeys and tray icon. See the comments in the script for more information. The default hotkeys are:
Win+Q: Opens the menu shown above.
Win+A: If the active window belongs to a script, a menu to control it is shown. If the active window's title matches PathRegEx, all matching scripts are listed. Otherwise, all scripts are listed.
Shift+click the Edit menu item to open the main script file in an editor rather than showing the list of #included files.
On Windows XP and Vista, an icon is shown for any script that has a tray icon. For other scripts and newer versions of Windows, each script can set its own icon either by sending a WM_SETICON message to its main window, or by handling WM_GETICON. For example, AHKControl uses the following two lines (script_id is equivalent to A_ScriptHwnd):
if this_icon := MI_ExtractIcon(IconFile, IconNumber, IconSize) SendMessage 0x80, 0, this_icon,, ahk_id %this_id% [color=green]; WM_SETICON = 0x80[/color]