This may sound silly, but after opening and closing a bunch of compiled Marcros, on occasion they stack up in the SysTray. No big deal really as when you place your mouse over them the screen redraws and they are gone.
However, I was wondering if there is a way to force the redraw so they would not do this.
Forcing Systray to Refresh
Moderators: Dorian (MJT support), JRL
Refresh System Tray of Dead icons
I looked for some way in WMI or VBScript to do this but
couldn't find it (Yet, anyway)
However, this seems to work for me in XP and Windows Server 2008
It just moves the mouse over this area quickly, which forces Windows to redraw and remove any old icons left over from "dead" programs.
couldn't find it (Yet, anyway)
However, this seems to work for me in XP and Windows Server 2008
It just moves the mouse over this area quickly, which forces Windows to redraw and remove any old icons left over from "dead" programs.
Code: Select all
GetCursorPos>OLD_X,OLD_Y
GetWindowPos>Notification Area*,X,Y
GetScreenRes>MAX_X,MAX_Y
Let>MAX_X=MAX_X-10
Let>Y=Y+8
MouseMove>X,Y
Label>Loop
If>X>MAX_X,Loop_x
Add>X,8
MouseMove>X,Y
Endif
Goto>Loop
Label>Loop_x
MouseMove>OLD_X,OLD_Y
Never thought of that
Thanks I would never have thought of that.
Hi
In windows7 i use this code to kill spotify (it won't close normally by itself and GetWindowPos>Notification Area* doesn't work under windows7) AND to get rid of the stack up icons in the tray.
For some reason code was not displayed correctly here so i uploaded the code to another location.
Disadvantage: it only works when systray is at the bottom of the screen. So if there is any better solution, please let me know.
best regards,
wil
In windows7 i use this code to kill spotify (it won't close normally by itself and GetWindowPos>Notification Area* doesn't work under windows7) AND to get rid of the stack up icons in the tray.
For some reason code was not displayed correctly here so i uploaded the code to another location.
Disadvantage: it only works when systray is at the bottom of the screen. So if there is any better solution, please let me know.
best regards,
wil