Sign in to follow this  
Followers 0
markd89

Winactivate -- partial match on Window title

3 posts in this topic

I need to activate a Window but I don't have it's exact title. I have only what the title begins with.

For example:

I want to detect "Test Application" in the title and activate the window whether the title is "Test Application" or "Test Application - document1" or "Test Application - foo"

Is this possible?

Thanks,

Mark

Share this post


Link to post
Share on other sites



I need to activate a Window but I don't have it's exact title. I have only what the title begins with.

For example:

I want to detect "Test Application" in the title and activate the window whether the title is "Test Application" or "Test Application - document1" or "Test Application - foo"

Is this possible?

Thanks,

Mark

There is a option named "WinTitleMatchMode", if you change this to 2 then it will match any substring in the title (Help file).

Here's how:

Opt("WinTitleMatchMode",2)
WinActivate("Test Application")

Broken link? PM me and I'll send you the file!

Share this post


Link to post
Share on other sites

Thanks!

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