MSFN Forum: Wildcards in window names? - MSFN Forum

Jump to content



Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Wildcards in window names? How to? Rate Topic: -----

#1 User is offline   Swimming_Bird 

  • I want the NHL Back
  • PipPipPip
  • Group: Members
  • Posts: 378
  • Joined: 12-October 04

Posted 28 June 2005 - 12:57 PM

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

This post has been edited by Swimming_Bird: 28 June 2005 - 01:04 PM



#2 User is offline   Cantloginin 

  • Group: Members
  • Posts: 5
  • Joined: 30-March 05

Posted 28 June 2005 - 01:11 PM

I know for directories you would just use asterisk.

Example

CD C:\prog*
COPY D:\AAW\*.* C:\prog*\aaw


Something like that you are looking for?

#3 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 28 June 2005 - 01:44 PM

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.

#4 User is offline   Swimming_Bird 

  • I want the NHL Back
  • PipPipPip
  • Group: Members
  • Posts: 378
  • Joined: 12-October 04

Posted 29 June 2005 - 07:53 AM

would "MSFN Wildcard" work with mode 2? note that i used Wildcard not Wildcards.

And if that doesnt work would "MSFN Wildcards" work?

#5 User is offline   MHz 

  • SendToA3X v1.7
  • PipPipPipPipPipPipPip
  • Group: Members
  • Posts: 1,634
  • Joined: 02-August 04

Posted 29 June 2005 - 08:45 PM

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

This post has been edited by MHz: 29 June 2005 - 08:50 PM


#6 User is offline   spiritpyre 

  • Grand Poobah
  • PipPip
  • Group: Members
  • Posts: 191
  • Joined: 28-April 05

Posted 29 June 2005 - 10:59 PM

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.

This post has been edited by spiritpyre: 29 June 2005 - 11:01 PM


Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users



All trademarks mentioned on this page are the property of their respective owners
Copyright © 2001 - 2011 msfn.org
Privacy Policy