| View previous topic :: View next topic |
| Author |
Message |
Bos Guest
|
Posted: Wed Jan 13, 2010 11:43 am Post subject: WinActivate |
|
|
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
|
Posted: Wed Jan 13, 2010 12:04 pm Post subject: |
|
|
| 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 |
|
 |
Bos Guest
|
Posted: Wed Jan 13, 2010 12:13 pm Post subject: |
|
|
| 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
|
|
| Back to top |
|
 |
Guest
|
Posted: Wed Jan 13, 2010 3:19 pm Post subject: |
|
|
| 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 |
|
 |
|