Page 1 of 1

How to change tooltip text for a non PB systray icon text?

Posted: Sat Dec 08, 2018 5:41 pm
by Michael Vogel
Thought I would get the handles easily, but all I was able to do is the following...

Code: Select all

hTaskbar = FindWindow_("Shell_TrayWnd", "")
Debug Hex(hTaskbar)
hTray = FindWindowEx_(hTaskbar, 0, "TrayNotifyWnd", "")
Debug Hex(htray)
hTray = FindWindowEx_(hTray, 0, "SysPager", "")
Debug Hex(htray)
n1 = GetWindow_(hTray,#GW_CHILD)
Debug Hex(n1)

nr=SendMessage_(n1,#TB_BUTTONCOUNT, 0, 0)

Debug Hex(n1)+", "+Str(nr)
Button.TBBUTTON

For i = 0 To nr-1
	Debug SendMessage_(n1,#TB_GETBUTTON,i,@Button)
	With Button
		Debug " - Icon #" + Str(i)+": "+Str(\iString)
	EndWith
Next