This UDF demonstrates how to add icon or bmp to a TrayItem or TrayMenu.
It's not perfect in the sense that it has no smart way of extracting the default icon for any file. To get a handle to the default, or first, resource of type icon you need to provided a callback function to EnumResourceTypes and friends (or something like that). And at the moment I don't know how to do that in autoit. Maybe a plugin? Or maybe persuade the developers to add support for TrayMenus and items to GUICtrlSetImage?
The UDF contains sample code in _Main(). It is commented out, so you have to uncoment.
You might want to modify paths and icon or bitmap references.
Attached Files
Edited by Uten, 17 October 2007 - 11:21 AM.













