Kindbudz Posted October 2, 2007 Share Posted October 2, 2007 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! Link to comment Share on other sites More sharing options...
Fossil Rock Posted October 2, 2007 Share Posted October 2, 2007 I would suggest changing one of the titles with WinSetTitle() and go from there. Agreement is not necessary - thinking for one's self is! Link to comment Share on other sites More sharing options...
TimoScripter Posted October 2, 2007 Share Posted October 2, 2007 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. Link to comment Share on other sites More sharing options...
Kindbudz Posted October 2, 2007 Author Share Posted October 2, 2007 Perfect!! Thanks Fossil Link to comment Share on other sites More sharing options...
Moderators SmOke_N Posted October 2, 2007 Moderators Share Posted October 2, 2007 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. 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