Function Reference


TraySetPauseIcon

Loads/Sets a specified tray pause icon.

TraySetPauseIcon ( [filename [, 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 contains multiple icons.

Return Value

None.

Remarks

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

Passing a positive number will reference the string equivalent icon name.
Passing a negative number causes 1-based "index" behaviour. Some Dll can have icon extracted just with negative numbers.

Related

TraySetIcon, TraySetState

Example

#NoTrayIcon
#include <TrayConstants.au3> ; Required for the $TRAY_ICONSTATE_SHOW constant.

Example()

Func Example()
    TraySetPauseIcon("shell32.dll", 12) ; Set the pause icon. This will flash on and off when the tray menu is selected and the script is paused.
    TraySetState($TRAY_ICONSTATE_SHOW) ; Show the tray menu.

    While 1
        Sleep(100) ; An idle loop.
    WEnd
EndFunc   ;==>Example