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 

Find window from processname

 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List
View previous topic :: View next topic  
Author Message
green_seacow



Joined: 04 Mar 2004
Posts: 7

PostPosted: Mon Mar 29, 2004 2:03 pm    Post subject: Find window from processname Reply with quote

Hi,

In my application I open sndvol32 with a hotkey, when I'm finished I want to close it. Problem is the title of the window varies depending on the locale of Windows XP (Swedish and English for example). If it's possible I think it might be useful to be able to find a window by some other means than the title. Or perhaps a command to close/kill a process. Perhaps not a high priority feature but it might be nice to have Smile

Regards,
Peter A
Back to top
View user's profile Send private message
Chris
Site Admin


Joined: 02 Mar 2004
Posts: 10467

PostPosted: Mon Mar 29, 2004 2:20 pm    Post subject: Reply with quote

One thing that might help is the abilty to close the active window. To do this, use "WinClose, A". You can also close the "last found" window by using just "WinClose" with no parameters. You can make the active window become the "last found" window via "WinWait, A".

Another alternative is to close the window via "Send, !{F4}".

If these things don't help, post again here and we'll try to come up with another solution.

I do plan to add Process management commands eventually, but it's not at the top of the to-do list. In any case, I'm adding to the list your specific suggestion about identifying a window by its process name.
Back to top
View user's profile Send private message Send e-mail
Beastmaster
Guest





PostPosted: Thu Apr 01, 2004 12:10 am    Post subject: Reply with quote

With PSKill by Sysinternals, you should be able to solve that issue.

Run, pskill sndvol32,, Hide
Back to top
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Wish List 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