FrederickB Posted July 8, 2004 Share 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 Link to comment Share on other sites More sharing options...
Proof Posted July 8, 2004 Share 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 Link to comment Share on other sites More sharing options...
FrederickB Posted July 8, 2004 Author Share 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. Link to comment Share on other sites More sharing options...
Proof Posted July 8, 2004 Share 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" ). Link to comment Share on other sites More sharing options...
FrederickB Posted July 8, 2004 Author Share 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 Link to comment Share on other sites More sharing options...
Proof Posted July 8, 2004 Share 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. Link to comment Share on other sites More sharing options...
FrederickB Posted July 8, 2004 Author Share 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 Link to comment Share on other sites More sharing options...
emmanuel Posted July 8, 2004 Share 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) 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