 |
AutoHotkey Community Let's help each other out
|
| View previous topic :: View next topic |
| Author |
Message |
superbem
Joined: 30 Jul 2007 Posts: 20
|
Posted: Thu Feb 07, 2008 4:47 pm Post subject: Close an app that is minimized to tray *solved* |
|
|
How to close an application that is minimized to tray?
I've tried winclose, winkill, with detecthiddenwindows on, no success.
I'm trying to avoid the process close.
Can someone help?
Last edited by superbem on Thu Feb 07, 2008 7:12 pm; edited 1 time in total |
|
| Back to top |
|
 |
superbem
Joined: 30 Jul 2007 Posts: 20
|
Posted: Thu Feb 07, 2008 7:09 pm Post subject: |
|
|
Finally
| Code: | DetectHiddenWindows, On
pid:=pid("sample.exe")
PostMessage, 0x12,,,,ahk_pid %pid%
pid(val){
Process, Exist, %val%
return %ErrorLevel%
}
|
|
|
| Back to top |
|
 |
Guest
|
Posted: Fri Feb 08, 2008 5:19 am Post subject: |
|
|
Please don't post magic numbers/mystery meat!...we can't tell that 0x12 is WM_QUIT just by looking at it...so please assign the var, then use the var name in the PostMessage...
| Code: | DetectHiddenWindows, On
pid:=pid("sample.exe")
WM_QUIT:=0x0012
PostMessage, WM_QUIT, , , , ahk_pid %pid%
pid(val){
Process, Exist, %val%
return %ErrorLevel%
} |
|
|
| Back to top |
|
 |
superbem
Joined: 30 Jul 2007 Posts: 20
|
|
| Back to top |
|
 |
|
|
You can post new topics in this forum You can reply to topics in this forum
|
Powered by phpBB © 2001, 2005 phpBB Group
|