Swimming_Bird Posted June 28, 2005 Share Posted June 28, 2005 (edited) Topic is pretty self explanitoryHow 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 Edited June 28, 2005 by Swimming_Bird Link to comment Share on other sites More sharing options...
Cantloginin Posted June 28, 2005 Share Posted June 28, 2005 I know for directories you would just use asterisk.Example CD C:\prog*COPY D:\AAW\*.* C:\prog*\aawSomething like that you are looking for? Link to comment Share on other sites More sharing options...
MHz Posted June 28, 2005 Share Posted June 28, 2005 No wildcards in window titles.You have 4 options.Opt("WinTitleMatchMode", 1) ;1=start, 2=subStr, 3=exact, 4=advanced1 is default. Title is from the start of title. So a title withMSFN Forums -> Replying in Wildcards in window namescan be entered as MSFN Forums2 is substrings. So with the existing title as above, You can just do this:Replying in Wildcards3 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=CLASSNAMEThere 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 More sharing options...
Swimming_Bird Posted June 29, 2005 Author Share Posted June 29, 2005 would "MSFN Wildcard" work with mode 2? note that i used Wildcard not Wildcards.And if that doesnt work would "MSFN Wildcards" work? Link to comment Share on other sites More sharing options...
MHz Posted June 30, 2005 Share Posted June 30, 2005 (edited) 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 isword1 word2 word3 word4 word5You can choose any of the 5 words to use, or a group of the words to use.Some valid examples would beword1word4word2 word3You 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 June 30, 2005 by MHz Link to comment Share on other sites More sharing options...
spiritpyre Posted June 30, 2005 Share Posted June 30, 2005 (edited) 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 June 30, 2005 by spiritpyre 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