作者: Sean 最近更新时间: 20080716
It will display the infos of the current tray icons:
exename, classname, hWnd, nMsg (:Message ID), uID (:Icon ID), idn (:Button ID)
TrayIcon(sExeName = "")
TrayIcon_Delete(idx)
TrayIcon_GetTrayBar()
TrayIcon_Hide(idn, bHide = True)
TrayIcon_Move(idxOld, idxNew)
TrayIcon_Remove(hWnd, uID, nMsg = 0, hIcon = 0, nRemove = 2)
关于函数的参数和返回值, 请参阅其源码或 此文档.
This comes within the TrayIcon.zip, together with TaskButton.ahk.
I have modified the source to work with the stdlib mechanism. All function names are changed, with added prefix TrayIcon_, except the main function.
It comes without an external documentation, so I copied part of author`s original post as the documentation.
关于此函数(集)的更新细节和注意事项, 请参见 AutoHotkey 论坛: http://www.autohotkey.com/forum/viewtopic.php?t=17314
不存在
; #Include TrayIcon.ahk #NoEnv #NoTrayIcon SendMode Input SetWorkingDir %A_ScriptDir% DetectHiddenWindows, On ; Get list of information about all icons in the system tray in following format: ; idx: 0 | idn: 10 | Pid: 4508 | uID: 1028 | MessageID: 1028 | hWnd: 4719526 | Class: AutoHotkey | Process: AutoHotkey.exe`n | Tooltip: LibraryExplorer.ahk`n MsgBox % TrayIcon() Return