Wilson WindowWare Tech Support

WinBatch WinBatch+Compiler WebBatch
Home | Tech Database | Tech BBS | White Papers | Purchase


List of Running Programs in the SysTray

Keywords: 

Question:

I need to get a list of running programs in the SysTray. Any ideas?

Answer:

Whar versions of Windows. For Win98/ME and Windows 2000/XP it is easy...


;RoboScripter
; Made with 
;   RoboScripter ver: 29
;   CtlMgr ver: 20028
AddExtender("wwctl34i.dll")

;Title: Notification Area
;ID: 0
;Class: ToolbarWindow32
;Level: 4
window1=cWndByWndSpec("Shell_TrayWnd","explorer",3,304,303,40965)
window2=cWndbyid(window1,303)
window3=cWndbyid(window2,0)
ControlHandle=cWndbyid(window3,0)
result=cGetTbText(ControlHandle)
Message("Toolbar Text",StrReplace(result,@TAB,@CRLF))     ;TODO - Add code to use toolbar text.