欧美bbbwbbbw肥妇,免费乱码人妻系列日韩,一级黄片

基 礎(chǔ) 函 數(shù) 參 考


TrayItemSetText

設(shè)置托盤菜單或項(xiàng)目的文本.

TrayItemSetText ( 控件ID, 文本 )

參 數(shù)

控件ID TrayCreateItemTrayCreateMenu 函數(shù)返回的控件標(biāo)識符.
文本 托盤菜單或項(xiàng)目的新文本.

返 回 值

成功: 返回 1.
失敗: 返回 0.

備 注

要更改默認(rèn)菜單項(xiàng)(腳本暫停/退出)的文本, 使用常量 $TRAY_ITEM_EXIT and $TRAY_ITEM_PAUSE 作為控件ID.

相 關(guān) 函 數(shù)

TrayItemGetText, TrayCreateItem, TrayCreateMenu

函 數(shù) 示 例


#include <Constants.au3>
#NoTrayIcon

Opt("TrayAutoPause", 0) ; 當(dāng)點(diǎn)擊托盤圖標(biāo)時腳本不會暫停.

Local $valitem = TrayCreateItem("值:")
TrayCreateItem("")
Local $aboutitem = TrayCreateItem("關(guān)于...")

TraySetState()

TrayItemSetText($TRAY_ITEM_EXIT, "退出程序")
TrayItemSetText($TRAY_ITEM_PAUSE, "暫停程序")

While 1
    Local $msg = TrayGetMsg()
    Select
        Case $msg = 0
            ContinueLoop
        Case $msg = $valitem
            TrayItemSetText($valitem, "值:" & Int(Random(1, 10, 1)))
        Case $msg = $aboutitem
            MsgBox(64, "關(guān)于:","AutoIt3-托盤菜單示例")
    EndSelect
WEnd

Exit

provider with jb51.net (unicode)