FrederickB 0 Posted July 8, 2004 Can any one help me with this scanario? I have 2 database application windows that have to be open. And I'm trying to run scripts that will control the applications, but I need to differentiate between the two windows. My problem is that BOTH windows have EXACTLY THE SAME TITLE And when I try to one activate by the window title, it loads the windows that was most recently active, which could be either of the two. I have tried addressing one window using ClassName. Which works fine on my on system, but when I compile and run the script on another system with the same setup, the script simply hangs / halts, without switching to any window. Any suggestions are more than welcome! Many Thanks Frederick Share this post Link to post Share on other sites
Proof 0 Posted July 8, 2004 (edited) Window text is also the same? You can use any part of the window text to differ one window from the other. You can also change the title of one of the windows (maybe they open in a specific order, then rename the first, before the second is opened) using the function WinSetTitle ( "title", "text", "newtitle" ). Edited July 8, 2004 by Proof Share this post Link to post Share on other sites
FrederickB 0 Posted July 8, 2004 Sadly. No :-( Both are the same. One is an older version of the database, and isn't scheduled to be dis-continued for a few month now. Share this post Link to post Share on other sites
Proof 0 Posted July 8, 2004 You saw my [EDIT], can't tell from your answer ? You can also change the title of one of the windows (maybe they open in a specific order, then rename the first, before the second is opened) using the function WinSetTitle ( "title", "text", "newtitle" ). Share this post Link to post Share on other sites
FrederickB 0 Posted July 8, 2004 Thanks also, the second idea is definitly an option. But I prefer it if there was another way, as telling users what way to open their systems could prove difficult. Any other suggestons? Thanks Again Frederick Share this post Link to post Share on other sites
Proof 0 Posted July 8, 2004 If the two windows are exactly the same in title and text, i guess you have to mark them in any kind. I guess the user interaction makes it senseless to think about a way to change only between those two windows and "remember", which one is activated I had that problem with some MS Office applications, but fortunately the text was different in some points. Share this post Link to post Share on other sites
FrederickB 0 Posted July 8, 2004 No problem. Thanks with all your help! I probably will have to go for the option to load and label the applications. I just didn't fancy the coding, for all the usernames and passwords. Thanks Again Frederick Share this post Link to post Share on other sites
emmanuel 0 Posted July 8, 2004 what I did with two windows with same title with undetectable text, I had my script open the first, rename it's window with winsettitle and then open the second and rename it... "I'm not even supposed to be here today!" -Dante (Hicks) Share this post Link to post Share on other sites