# TaskButton

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

For more details of the functions's parameters and return value, please see it's source code.

#### Remarks

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.

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