AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Exiting Program

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help
View previous topic :: View next topic  
Author Message
someguy
Guest





PostPosted: Sat Jul 24, 2004 5:57 pm    Post subject: Exiting Program Reply with quote

is there a way to close/exit programs such as Sygate Firewall which closes to system tray.
WinKill/WinClose don't work
Back to top
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Sat Jul 24, 2004 6:50 pm    Post subject: Reply with quote

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)
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Ask for Help All times are GMT
Page 1 of 1

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group