dainsleif Posted February 22, 2004 Share Posted February 22, 2004 (edited) Hi everybody I am currently trying to read the full stats (name, text, position,..) , but mainly I need the title. The problem is I know only part of the windowname. I know how to get full title etc when i know the first part of the title but I need to get the title even if I only know some middle-part or the end of the title. So I am looking for a way to use some kind of wildcards to be able to get the title. e.g.: wingettitle("*PartOfName*","") Or else is there a way to read the title of the currently active window without knowing anything else about it? ------ found it in here and in help .. sorry for posting delete plz Edited February 22, 2004 by dainsleif Link to comment Share on other sites More sharing options...
casanova Posted February 23, 2004 Share Posted February 23, 2004 I have been trying to get this going, but to no success. I think this is one feature that would be good to have,, if it is not already in! Larre, Jon, I hope you folks read this! Cheers, Casa Link to comment Share on other sites More sharing options...
scriptkitty Posted February 23, 2004 Share Posted February 23, 2004 Option 2 allows a match of anything contained in the window, so Soft in this part would work if your window was say "HiddenSoft Forrums ->" Substr= Part of a String. AutoItSetOption("WinTitleMatchMode", 2) ;1=start, 2=substr, 3=exact, 4=... msgbox(1,"info",WinGetTitle ( "Soft" )) you can use this for all window operations, size, position, etc. Just use the AutoItSetOption("WinTitleMatchMode", 2) or use the short version Opt("WinTitleMatchMode", 2) AutoIt3, the MACGYVER Pocket Knife for computers. 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