Jump to content

Get the last opened Window if there are several with same name


Recommended Posts

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

  • Moderators

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

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

  • Moderators

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

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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...