04-29-2018, 04:01 PM
(This post was last modified: 10-24-2019, 01:50 AM by InterestedNewbie.)
Thanks Kevin, but the only thing that appears to work in this situation is ShutDownProcess (the executables to be killed are windowless programs). Also, adding a flag doesn't make a difference.
I can reach the Taskbar tray Icon with sending keys: Win+T TAB RIGHT ENTER (and repeat those last two a couple of times).
This procedure will remove the orphans but it will also activate any working tray Icon which of course is undesired.....
I found a shorter way and that is restarting explorer.exe. The orphan icons will immediately be removed after that:
Macro
It doesn't appear to affect any running programs (but I will have to test that more thoroughly). I added ALT + F4 to immediately close Windows Explorer when it pops up.
I can reach the Taskbar tray Icon with sending keys: Win+T TAB RIGHT ENTER (and repeat those last two a couple of times).
This procedure will remove the orphans but it will also activate any working tray Icon which of course is undesired.....
I found a shorter way and that is restarting explorer.exe. The orphan icons will immediately be removed after that:
Macro
It doesn't appear to affect any running programs (but I will have to test that more thoroughly). I added ALT + F4 to immediately close Windows Explorer when it pops up.