Application.SetSysTrayIcon

boolean Application.SetSysTrayIcon ( 

string IconPath,

number IconIndex = 0 )

Example 1

-- Sets the application's system tray icon using "about.ico".
bSuccess = Application.SetSysTrayIcon("AutoPlay\\Icons\\about.ico", 0);

Sets the application's system tray icon using the file "about.ico."

Example 2

-- Set the system tray icon back to its original.
bSuccess = Application.SetSysTrayIcon("", 0);

Sets the application's system tray icon back to the its original one.

See also:  Related Actions