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 

Close an app that is minimized to tray *solved*

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



Joined: 30 Jul 2007
Posts: 20

PostPosted: Thu Feb 07, 2008 4:47 pm    Post subject: Close an app that is minimized to tray *solved* Reply with quote

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
View user's profile Send private message
superbem



Joined: 30 Jul 2007
Posts: 20

PostPosted: Thu Feb 07, 2008 7:09 pm    Post subject: Reply with quote

Finally Confused
Code:
DetectHiddenWindows, On
pid:=pid("sample.exe")
PostMessage,  0x12,,,,ahk_pid %pid%

pid(val){
   Process, Exist, %val%
   return %ErrorLevel%
}
Back to top
View user's profile Send private message
Guest






PostPosted: Fri Feb 08, 2008 5:19 am    Post subject: Reply with quote

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

PostPosted: Fri Feb 08, 2008 10:58 am    Post subject: Reply with quote

sure, here is the mystery meat: http://wiki.winehq.org/List_Of_Windows_Messages
Back to top
View user's profile Send private message
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