zhaicheng Posted January 27, 2011 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!
wakillon Posted January 27, 2011 Posted January 27, 2011 (edited) On 1/27/2011 at 9:15 AM, 'zhaicheng said: 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
Varian Posted January 27, 2011 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
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