Close programatically
Brought to you by:
stevencole
I can use a script (e.g. a AutoHotkey script) to launch Coffee whenever my internet download program is started, but I find no proper way to close Coffee when the latter is no more running. If I terminate Coffee process brutely by a script, I end up having a ghost icon in the system tray, i.e. a Coffee icon stay in my Win7 x64 system tray (even though Coffee process has been terminated)
I would really appreciated if Coffee supports says a command-line parameter like /q or /quit to tell coffee to close itself.
i believe command line parameters only get passed when the application starts, so how would coffee know when to close?
After a quick Google seems like you can close applications WinClose vs WinKill. http://www.autohotkey.com/docs/commands/WinClose.htm
I have no problem in closing Coffee with autohotkey script, my problem is its icon stay in system tray (even though the program has been closed)
May be I should suggest such that Coffee can be configured to close itself when it detects the absence of certain running program.
Last edit: TSLIM 2013-04-10