TaskButton

作者: Sean 最近更新时间: 20080716


It will display the infos of the current tray buttons:
exename, classname, hWnd, nMsg (:Message ID), uID (:Icon ID), idn (:Button ID)

TaskButton(sExeName = "")
TaskButton_Delete(idx)
TaskButton_GetTaskSwBar()
TaskButton_Hide(idn, bHide = True)
TaskButton_Move(idxOld, idxNew)

关于函数的参数和返回值, 请参阅其源码.

备注

This comes within the TrayIcon.zip, together with TrayIcons.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 TaskButton.ahk
#NoEnv
#NoTrayIcon
SendMode Input
SetWorkingDir %A_ScriptDir%
DetectHiddenWindows, On

; Get list of information about all buttons in the system taskbar in following format:
; idx: 1 | idn: 3 | pid: 5912 | hWnd: 328792 | Class: CabinetWClass | Process: explorer.exe`n   | Tooltip: samp`n
MsgBox % TaskButton()
Return