Jump to content

Recommended Posts

Posted

My problem:

Using function WinActivate() for 2 similar windows titles (with window titles like: "window1" and "window10")

sometimes activates wrong one.

The problem is that the following text is the same (in first 7 letters) and WinActivate() function doesn't use sth like 'case sensitive match' for windows selection.

My questions:

How to use only 'case sensitive match' for window selection? (if it's possible)

If it's not possible, how to solve my problem?

Thanks.

Posted

You can use the "text" parameter of any Win* call to narrow the search to a specific window. You can use WinActivate("window1", "unique text") to activate a window with only the unique text.

Who else would I be?
Posted

You can use the "text" parameter of any Win* call to narrow the search to a specific window. You can use WinActivate("window1", "unique text") to activate a window with only the unique text.

What if my windows are plain inside? Only 'Title Bar' is available to use with WinActivate().

Any more solutions?

Posted

What if my windows are plain inside? Only 'Title Bar' is available to use with WinActivate().

Any more solutions?

Have you used AutoIt Window Info tool on the windows to see if it shows any differences.


Time you enjoyed wasting is not wasted time ......T.S. Elliot
Suspense is worse than disappointment................Robert Burns
God help the man who won't help himself, because no-one else will...........My Grandmother

Posted

What if my windows are plain inside? Only 'Title Bar' is available to use with WinActivate().

Any more solutions?

look up WinTitleMatchMode option in help file. it's an option that you can set with Opt() to configure the matching behavior of functions that use window titles.

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
  • Recently Browsing   0 members

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