zhaicheng Posted January 27, 2011 Share Posted January 27, 2011 Is it possible to use regular expression to match a window ’s text ,not a title or classname?Although I can solve the problem by first getting the text by using "WinGetText" Function, and then matching with "StringRegExp".Is there any direct way?Many thanks! Link to comment Share on other sites More sharing options...
wakillon Posted January 27, 2011 Share Posted January 27, 2011 (edited) Is it possible to use regular expression to match a window ’s text ,not a title or classname?Although I can solve the problem by first getting the text by using "WinGetText" Function, and then matching with "StringRegExp".Is there any direct way?Many thanks! is a PsaltyDS alternative... Edited January 27, 2011 by wakillon AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts Link to comment Share on other sites More sharing options...
Varian Posted January 27, 2011 Share Posted January 27, 2011 That is built into Autoit with "WinTitleMatchMode" Mode 4WinWait('[REGEXPTITLE:(?i)Windows Media]') ;RE for Windows Media anywhere in title case insensitive WinWait('[REGEXPTITLE:xplorer²; REGEXPCLASS:ATL:ExplorerFrame]') ;RE for xplorer² anywhere in title & Class ATL:ExplorerFrameIt comes in handy when matching Titles or Classes with a colon ":" in them 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