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 

WinActivate

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





PostPosted: Wed Jan 13, 2010 11:43 am    Post subject: WinActivate Reply with quote

Okay everyone,

I come up with a little problem I have no idea how to do this.
Let's say I have multiple windows with the same Window Title. If I want to switch between two windows, WinActivate and WinActivateBottom will do right?
But now what if I want to control more windows let's say 3, what is the best way to WinActivate each one seperately.

I hope there is a solution!
Thanks,
Bos
Back to top
Kellianjaxon



Joined: 04 Jan 2008
Posts: 102

PostPosted: Wed Jan 13, 2010 12:04 pm    Post subject: Reply with quote

If you only need to keep activating one window after another in order, ie. not any particular one at a particular time, GroupAdd and GroupActivate can do the job. However, if you need complete control over which one of the windows with similar titles is activated, your best shot is probably to retrieve a unique window handle for each window using WinGet, , List.
Back to top
View user's profile Send private message
Bos
Guest





PostPosted: Wed Jan 13, 2010 12:13 pm    Post subject: Reply with quote

ah, yes, Thanks alot Kellian. I think that's what I'm looking for. Too bad it will be somewhat harder to program it with all handles but I'll give it a go. Thanks!
Back to top
Peter



Joined: 30 Dec 2005
Posts: 448

PostPosted: Wed Jan 13, 2010 12:13 pm    Post subject: Reply with quote

Look in this post Switching window in specific program group?+cool code contri
PS: did you notice the descriptive subject line of that post Wink ?
Back to top
View user's profile Send private message
Guest






PostPosted: Wed Jan 13, 2010 3:19 pm    Post subject: Reply with quote

Bos wrote:
Too bad it will be somewhat harder to program it with all handles...

...all handles ain't bad, it's really better than trying to fumble with titles...I do however recommend you try the GroupActivate method...or explain more what you want to accomplish?...do you REALLY need to pick which window becomes active when the Hotkey is pressed?
Back to top
Display posts from previous:   
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