Jump to content

Recommended Posts

Posted

Ok.. well I looked around the forums and of course the wonderful help file but i didnt find what I needed. I have 2 windows running with the exact same name, I need to determine which is which. Is there an easy way to do this? An easy way to explain this would be 2 identical notepads opened. How do I say i want to write hello in the first instance and goodbye in the second?

Any help would be great. Thanks in advance!

Posted

I would suggest changing one of the titles with WinSetTitle() and go from there.

Agreement is not necessary - thinking for one's self is!

My-Colors.jpg

cuniform2.gif

Posted

I think AutoIt will choose that one of the two windows first which was last active. If you know or can determine which one it was, you may write "hello" therein, which helps already to distinct it from the second.

  • Moderators
Posted

Even if the two windows have the same title, they will have a unique handle.

WinGetHandle() will be your friend in these situations more so than changing the title or relying on it (as you can change it, it will probably (I know my apps do) end up changing the title back at a later time).

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.

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
  • Recently Browsing   0 members

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