Sets or removes a menu item's icon.
Menu, MenuName, Icon, MenuItemName, FileName [, IconNumber, IconWidth] Menu, MenuName, NoIcon, MenuItemName
| MenuName | See Menu. |
| MenuItemName | The name of an existing menu item. |
| FileName | The filename of a supported image or icon file. |
| IconNumber | See Menu, Icon. Additionally, negative numbers can be used as resource identifiers. |
| IconWidth | The desired width of the icon. If the icon group indicated by IconNumber contains multiple icon sizes, the closest match is used and the icon is scaled to the specified size. |
| IconHeight | Not supported. |
Any image format supported by AutoHotkey may be used as a menu icon. Currently it is necessary to specify "actual size" when setting the icon to preserve transparency on Windows Vista and later. For example:
Menu, Icon, MenuItemName, Filename.png,, 0