Chris Site Admin
Joined: 02 Mar 2004 Posts: 10467
|
Posted: Sat Jul 24, 2004 6:50 pm Post subject: |
|
|
Such programs often have a hidden main window. You could try this:
DetectHiddenWindows, on
WinClose, <name of window as determined when the window is visible>
From what I've learned about tray apps, most of them should (must?) have a main window of some kind to support the tray menu, even if it's permanently hidden.
There are also some command line utilities mentioned in the Utilities forum that can send a Close message to any process (or kill it if there's no other way).
Finally, a program's EXE might have command line switches used to turn it off and on. And as a last resort, if the program is always in the same place in the tray and you're using XP, you could try:
Send #b ; Win+B to activate the tray.
Send {right 4}{AppsKey}
Send <some keystrokes to select the desired menu item>
(or use PixelSearch to find an app's tray icon and click on it) |
|