-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathTrayIconsSummary.ahk
52 lines (42 loc) · 1.16 KB
/
TrayIconsSummary.ahk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
/**
* Description:
* Show info about curent icons in the tray menu
* License:
* Dedicated to Public Domain. See UNLICENSE.txt for details
*/
#NoEnv
#Warn UseUnsetLocal
#Warn UseUnsetGlobal
#MaxHotkeysPerInterval 200
#SingleInstance Force
SetWorkingDir %A_ScriptDir%
SetBatchLines -1
SendMode Input
;-------------------------------------------------------------------------------
;{ Config Section
Gui New, +hWndg_listViewHwnd
;}
#include %A_LineFile%\..\3rdparty\Lib\TrayIcon.ahk
Gui Add, ListView, Grid r30 w700 Sort, Process|Tooltip|Visible|Handle
oIcons := TrayIcon_GetInfo()
Loop, % oIcons.MaxIndex() {
proc := oIcons[A_Index].Process
ttip := oIcons[A_Index].tooltip
tray := oIcons[A_Index].Tray
hWnd := oIcons[A_Index].hWnd
vis := (tray == "Shell_TrayWnd") ? "Yes" : "No"
LV_Add(, proc, ttip, vis, hWnd)
}
LV_ModifyCol()
LV_ModifyCol(3, "AutoHdr") ; Auto-size the 3rd column, taking into account the header's text
Gui Show, Center, System Tray Icons (F5 to reload, Esc to exit)
Return
GuiEscape:
GuiClose:
ExitApp
;
;--------------------------End of auto-execute section--------------------------
;
#if WinActive("ahk_id" g_listViewHwnd)
F5::Reload
#if