Jump to content

Wildcards in window names?


Recommended Posts

Topic is pretty self explanitory

How do i include wildcards in window names?

Couldnt find anything in the help file or web site.

EDIT: Crap sorry, i forgot to even mention Autoit, i guess its not so self explanitory :P

Edited by Swimming_Bird
Link to comment
Share on other sites


No wildcards in window titles.

You have 4 options.

Opt("WinTitleMatchMode", 1)    ;1=start, 2=subStr, 3=exact, 4=advanced

1 is default. Title is from the start of title. So a title with

MSFN Forums -> Replying in Wildcards in window names

can be entered as

MSFN Forums

2 is substrings. So with the existing title as above, You can just do this:

Replying in Wildcards

3 is exact. Exact full title.

4 is advanced. This mode can allow you to use class names instead. You will see class listed in AutoIt Info Tool. This allows you to respond to a window, without knowing it's name.

classname=CLASSNAME

There are also functions available to get window titles, if you only know part of the name etc. Like WinGetTitle ( "title" [, "text"] )

Many different ways to solve a problem.

Link to comment
Share on other sites

Window title recognition works with case sensitive, literal strings. No wildcard support.

Mode 2 is substring. So you can select any part of the title string.

If a title is

word1 word2 word3 word4 word5

You can choose any of the 5 words to use, or a group of the words to use.

Some valid examples would be

word1
word4
word2 word3

You should be able to use even part of a word, if needed.

I see what you are doing, you are using a word here, and a word there. No, that is a broken string. It would need the be a substring (1 piece of the string).

Edited by MHz
Link to comment
Share on other sites

not sure about including wildcards in filenames or if its possible. i don't think it would help you out w/ windows titles like autoit and might be off topic but there's a shell extension called wildcard select that gives you dos-wildcard usage w/ windows gui.

Edited by spiritpyre
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
  • Recently Browsing   0 members

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