Function Reference

首页  后退  前进

TraySetPauseIcon

 

设置指定的托盘暂停图标.

 

TraySetPauseIcon ( [filename [, iconID]] )

参数

filename

[可选] 图标文件名.

iconID

[可选] 如果图标文件包含多个图标, 则指定使用的图标标识符.

返回值

None.

备注

要重设暂停图标为默认(红十字), 使用不带参数的函数: TraySetPauseIcon().

 

传递一个正数将引用图标的名称.

传递一个负数将引用基于 1 的图标索引. 某些 DLL 只能用负值提取图标.

相关

TraySetIcon, TraySetState

函数示例

#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

----------------------------------------