Jaccus Posted October 3, 2005 Posted October 3, 2005 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.
this-is-me Posted October 3, 2005 Posted October 3, 2005 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?
Jaccus Posted October 3, 2005 Author Posted October 3, 2005 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?
BigDod Posted October 3, 2005 Posted October 3, 2005 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
seandisanti Posted October 3, 2005 Posted October 3, 2005 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.
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