Sign in to follow this  
Followers 0
FrederickB

Please Help: Activating 1 specific window

8 posts in this topic

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



#2 ·  Posted (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 by Proof

Share this post


Link to post
Share on other sites

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

You saw my [EDIT], can't tell from your answer :ph34r: ?

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

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

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 :ph34r:

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

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

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

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