# Function Reference

TraySetPauseIcon

Loads/Sets a specified tray pause icon.

TraySetPauseIcon ( [iconfile [, iconID] )

Parameters

filename | [optional] The filename of the icon to be display as pause icon in the tray.
iconID | [optional] Icon identifier if the file contain multiple icons.

Return Value

Success: | Returns 1.
Failure: | Returns 0.

Remarks

To reset the pause icon to the default (red cross), use the function with no parameters:
TraySetPauseIcon().

Related

TraySetIcon

Example

#Include <Constants.au3>
#NoTrayIcon
TraySetPauseIcon("shell32.dll",12)
TraySetState()
While 1
$msg = TrayGetMsg()
WEnd
Exit