RRaebiger Posted January 26, 2006 Share Posted January 26, 2006 Hello, i'am new with AutoIt and need some help. I have an application which opens a special window everytime with the same title. If there are allready some windows opened, how can i find out which of these same titeled windows has been opened at last? I tried it with handles, but still i am without a solution. Has anybody an idea? Regards Rainer Raebiger Link to comment Share on other sites More sharing options...
SlimJim Posted January 26, 2006 Share Posted January 26, 2006 You could try using the text parameter, if there is a piece of text in the window which identifies the window you are looking for. Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 26, 2006 Moderators Share Posted January 26, 2006 You could try using the text parameter, if there is a piece of text in the window which identifies the window you are looking for.If the window has the same title as the previous window, then that's not going to work. What application is this?? Maybe we can try to see if we can come up with a solution using it. Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
MHz Posted January 26, 2006 Share Posted January 26, 2006 If the window has the same title as the previous window, then that's not going to work.I think differently. Select Case WinActive('Same Title', 'some text') ; do something Case WinActive('Same Title', 'different text') ; do something EndSelect Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted January 26, 2006 Moderators Share Posted January 26, 2006 I think differently. Select Case WinActive('Same Title', 'some text') ; do something Case WinActive('Same Title', 'different text') ; do something EndSelect True enough.. a bit brain dead today, if that doesn't work, Helge and myself came up with a couple of scenerios yesterday... http://www.autoitscript.com/forum/index.php?showtopic=20747 Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer. Link to comment Share on other sites More sharing options...
Valik Posted January 26, 2006 Share Posted January 26, 2006 I think all the window functions will match the last active window in the event more than one window meets the search criteria. 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