markd89 Posted May 10, 2008 Share Posted May 10, 2008 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 Link to comment Share on other sites More sharing options...
monoceres Posted May 10, 2008 Share Posted May 10, 2008 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, MarkThere 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! Link to comment Share on other sites More sharing options...
markd89 Posted May 10, 2008 Author Share Posted May 10, 2008 Thanks! Link to comment Share on other sites More sharing options...
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