TrayIcon

Author: Sean Last Modified: 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)

For the functions's parameters and return value, please see it's source code or the document.

Remarks

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.

For update's details and remarks related to the functions, please see the AutoHotkey Forum: http://www.autohotkey.com/forum/viewtopic.php?t=17314

License

nonexistent

Example

; #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