Jump to content

Wait for new window with only partially known title


Recommended Posts

Hi,

I'm trying to work with the Trillian Messenger windows. These windows have changing titles, depending on the person contacting me. Is there a way to do something like WinWait("*ICQ") with * as placeholder for anything? Another idea is to simply wait for any window (like WinWait(""), but title is not optional) and I'll do the title check myself.

Thanks,

Kevin.

Link to comment
Share on other sites

Use Opt ("WinTitleMatchMode", 2)

From the helpfile:

Options:

WinTitleMatchMode - Alters the method that is used to match window titles during search operations.

1 = Match the title from the start (default)

2 = Match any substring in the title

3 = Exact title match

4 = Advanced mode, see Window Titles & Text (Advanced)

Link to comment
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
 Share

  • Recently Browsing   0 members

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