Christoph_ Posted October 19, 2006 Share Posted October 19, 2006 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 ? Link to comment Share on other sites More sharing options...
eynstyne Posted October 19, 2006 Share Posted October 19, 2006 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] Link to comment Share on other sites More sharing options...
Blue_Drache Posted October 19, 2006 Share Posted October 19, 2006 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 Link to comment Share on other sites More sharing options...
Christoph_ Posted October 19, 2006 Author Share Posted October 19, 2006 Ah thanks, WinList () is what I was looking for. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now