This Topic is outdated. Refer Nazzal's NoTrayOrphans()
From a script - we can Terminate a Process through Process Close, command.
However, the Icon of the terminated process is displayed on the "Tray Notification Area"
unless the mouse is hovered over the Icon.
I post the following code that should handle the Mouse-Over-SystemTray for "any size" and "any position" taskbar
[*:1uq5ecgm]Download the Script : Refresh_TrayNotificationArea.ahk
But, I feel that this is NOT a perfect work around. ImageSearch is a powerful command that should
be used for this purpose but unfortunately I could not make a working script (till this date of posting).
It will be very useful if the script is modifed using ImageSearch. Any takers?
Related Topics for Reference :
[*:1uq5ecgm]Kill process AND tray icon - possible? - brotherS
[*:1uq5ecgm]How to detect an icon on the SysTray/TNA - BoBo
[*:1uq5ecgm]Recognize SysTray Icon - Dmitry