Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Keyboard hook
#10
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 
Code:
Copy      Help
ShutDownProcess("explorer")
3
run "$windows$\explorer.exe"
3
key AF4         ;; Alt+F4

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.


Messages In This Thread
Keyboard hook - by InterestedNewbie - 04-25-2018, 01:21 AM
RE: Keyboard hook - by Kevin - 04-25-2018, 03:50 AM
RE: Keyboard hook - by InterestedNewbie - 04-25-2018, 06:58 PM
RE: Keyboard hook - by Kevin - 04-26-2018, 12:02 AM
RE: Keyboard hook - by InterestedNewbie - 04-26-2018, 12:24 AM
RE: Keyboard hook - by InterestedNewbie - 04-28-2018, 08:58 PM
RE: Keyboard hook - by Kevin - 04-28-2018, 09:12 PM
RE: Keyboard hook - by InterestedNewbie - 04-29-2018, 03:19 AM
RE: Keyboard hook - by Kevin - 04-29-2018, 04:48 AM
RE: Keyboard hook - by InterestedNewbie - 04-29-2018, 04:01 PM
RE: Keyboard hook - by Gintaras - 04-29-2018, 05:13 PM
RE: Keyboard hook - by InterestedNewbie - 04-29-2018, 08:25 PM

Forum Jump:


Users browsing this thread: 3 Guest(s)