Jump to content

Recommended Posts

Posted

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

Posted

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!

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...