Sign in to follow this  
Followers 0
Christoph_

Multiple windows with the same name ?

4 posts in this topic

I've a problem with my scripts because Autoit always uses the first active window it finds; however if I have multiple windows with the same name open (I use mem.au3 to read data from them), how can I tell autoit to read the 2th or 3th instead of the first one ?

Share this post


Link to post
Share on other sites



Use winlist()

winlist will return 2 dimensional arrays.

Look it up in the helpfile 'cause I forget the rest


F@m!ly Guy Fr33k! - Avatar speaks for itself__________________________________________________________________________________________ite quotes... - Is your refrigerator running? If it is, It probably runs like you...very homosexually - Christians don't believe in gravity - Geeze Brian where do you think you are, Payless?- Show me potato Salad!__________________________________________________________________________________________Programs available - Shutdown timer[indent][/indent]

Share this post


Link to post
Share on other sites

Also look into using either pidWindowOne = WinGetProcess() to work with the PID, or hwndWindowOne = WinGetHandle() and use that with opt("WinTitleMatchMode",4). Using the hwnd method is much more reliable since each hwnd is unique.


Lofting the cyberwinds on teknoleather wings, I am...The Blue Drache

Share this post


Link to post
Share on other sites

Ah thanks, WinList () is what I was looking for.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0