Jump to content

Please Help: Activating 1 specific window


Recommended Posts

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

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
Link to comment
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" ).

Link to comment
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.

Link to comment
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)

Link to comment
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
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...