Beat Posted May 12, 2006 Share Posted May 12, 2006 Hey people! I hope that somebody can help me? First of all sorry for mistakes in language! The situation: I have x windows, let's say 10, all 10 windows have the same title "thatsthetitel". I need to switch between them, and I have to know which of the windows I handle exactly with. So I renamed them with winsettitle like "window1", "window2", and so on. Now I can activate them by title. The problem: If I click on a button in one of these windows, all 10 titles change to "thatsthetitel", so I can't differ them anymore... background: the problem is the software, it's not an error in the software, it's "normal". But I have to differentiate the windows.... Question: What can I do to be able to differentiate the windows? I need a solution, there I can then activate the windows each one by.... yeah, by something in which they differ then ^^ Enviroment: winxp, and the programm must run in vmware. So no keystrokes like ALT+TAB for switching the windows is possible... (or does somebody know, how i can send keystrokes with sendkey or something else in vmware? but thats not sooo important) I hope you understand what I mean?! Big Thanks in advance! Beat Link to comment Share on other sites More sharing options...
Bert Posted May 12, 2006 Share Posted May 12, 2006 Try using wingethandle on each window when they first exist. They should each have a unique handle. The Vollatran project My blog: http://www.vollysinterestingshit.com/ Link to comment Share on other sites More sharing options...
Beat Posted May 12, 2006 Author Share Posted May 12, 2006 Thanks for your answer! But the handleIDs are all the same I think that is because of the windows have at the beginning all the exactly same contents. Any other tips? Link to comment Share on other sites More sharing options...
Valuater Posted May 12, 2006 Share Posted May 12, 2006 (edited) not so... Run("notepad.exe") WinWaitActive("") $win1 = WinGetHandle("") Run("notepad.exe") WinWaitActive("") $win2 = WinGetHandle("") MsgBox(0,$win1, $win2) 8) EDIT... Larry got there first Edited May 12, 2006 by Valuater Link to comment Share on other sites More sharing options...
Beat Posted May 12, 2006 Author Share Posted May 12, 2006 thank you all for your support! my msgbox in a quick written program printed always the same, I think it had an error. Works very fine with these handles!! Big thanks to you larry and volleyman and valuater!!! 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