Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Systray update
#1
Hi Gintaras, hi all,

Is there a way to "refresh", i.e force redraw windows systray from code?
I suppose a SendMessage would, but don't find the syntax.

Why? I have a function which stop some processes at will, and icons in systray won't disappear when programs are
killed, so i'd like to do that at the end of my code.

Thanks
#2
Macro Macro2019
Code:
Copy      Help
int w=win("" "Shell_TrayWnd")
int c=child("Notification Area" "ToolbarWindow32" w)
if(!c) end "tray control not found. Maybe text is different, for example not English."
RECT r; GetClientRect c &r
int x y
for y r.bottom-8 0 -10
,for x r.right-4 0 -4
,,PostMessage c WM_MOUSEMOVE 0 MakeInt(x y)

;Tested on Windows 7 and XP.
;This does not remove hidden icons. It would be difficult.


Forum Jump:


Users browsing this thread: 1 Guest(s)