04-29-2009, 06:27 AM
Read AddTrayIcon help.
Macro
Both AddTrayIcon calls must be from the same thread. To delete from other thread, somehow notify the thread that added the icon to delete the icon.
Or use variable of Tray type.
Macro
Quote:It is automatically deleted when macro ends.
To delete before that, use "<delete>" as iconfile.
Macro
AddTrayIcon "mouse.ico" "Dialog1" "DLG1"
wait 3
AddTrayIcon "<delete>"
out "icon deleted"
wait 3
out "macro ended"Both AddTrayIcon calls must be from the same thread. To delete from other thread, somehow notify the thread that added the icon to delete the icon.
Or use variable of Tray type.
Macro
