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 

Switching between multiple windows wth same 'window title'

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



Joined: 24 Nov 2009
Posts: 5

PostPosted: Tue Nov 24, 2009 12:43 am    Post subject: Switching between multiple windows wth same 'window title' Reply with quote

Hi, hope someone can help with a little problem I am having. I am trying to automate a process however as I need to switch between 5 applications all of the same name (cannot alter application name) and then perform the same process and then start again. Tried just alt tabbing but this gets very messy after the first few alt tabs.

Hope that makes sense to someone Smile
_________
Or is there another way of doing this to make things simpler ? can u select a tab another way ? - however I need go through the applications in order (although same app)

Simtech
Back to top
View user's profile Send private message
i3egohan



Joined: 18 Jul 2006
Posts: 403

PostPosted: Tue Nov 24, 2009 1:13 am    Post subject: Reply with quote

Are alll the 'applications' all the same 'applications'. Because if they havent diffrent text in the main window.. Or diffrent buttons/control placements then you can easily obtain the classnn and stuff and use this.. If so checkout the 'AutoIt Window Spy' that comes packaged with AHK.
Back to top
View user's profile Send private message
simtech76



Joined: 24 Nov 2009
Posts: 5

PostPosted: Tue Nov 24, 2009 1:29 am    Post subject: Reply with quote

unfortunatly they are all the same application and all setup the same way - same icon postition, window position. Nothing within the application differs. - Auto window it shows same Window Title and Class
Back to top
View user's profile Send private message
TLM



Joined: 21 Aug 2006
Posts: 2926
Location: The Shell

PostPosted: Tue Nov 24, 2009 2:51 am    Post subject: Reply with quote

Are you running/starting the appilcations from AHK?

If so, you can use the PID to switch between them by using WinGet (see PID and Example #2 at the bottom of the page Wink ).

If your not executing from AHK you can use WinGet with an A for the wintitle (A = Active window).

Give it a try an post the code you come up with.
_________________
paradigm.shift:=(•_•)┌П┐RTFM||^.*∞
Back to top
View user's profile Send private message
simtech76



Joined: 24 Nov 2009
Posts: 5

PostPosted: Tue Nov 24, 2009 1:09 pm    Post subject: Reply with quote

Thanks for help but after 3 hours of messing around remembered the good old Alt Escape which will work in order - although reversed
Back to top
View user's profile Send private message
svi



Joined: 09 Oct 2006
Posts: 236
Location: Finland

PostPosted: Tue Nov 24, 2009 9:12 pm    Post subject: Reply with quote

Alt+Shift+Escape Smile
_________________
Pekka Vartto
Back to top
View user's profile Send private message
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