Sign in to follow this  
Followers 0
Kindbudz

2 windows with same title

5 posts in this topic

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!

Share this post


Link to post
Share on other sites



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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Perfect!! Thanks Fossil

Share this post


Link to post
Share on other sites

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.

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