motionman95 Posted May 5, 2009 Share Posted May 5, 2009 Hello! I'm trying to find a way to get a window's title using its classname, which, of course could be done with this: ConsoleWrite(WinGetTitle("[CLASS:NotepadOrWhatever]") & @CRLF) The only problem is that I wish there was a way to search for matching text in the classname, like being able to do this: ConsoleWrite(WinGetTitle("[CLASS:Or]") & @CRLF) Is there a way to resolve this? Thanks in advance! Link to comment Share on other sites More sharing options...
Authenticity Posted May 5, 2009 Share Posted May 5, 2009 You mean something like this? Run('calc.exe') While Not WinGetHandle('[REGEXPCLASS:(?i).*calc]') Sleep(100) WEnd ConsoleWrite(WinGetTitle('[REGEXPCLASS:(?i).*calc]') & @LF) 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