Jefferds44 Posted August 12, 2009 Share Posted August 12, 2009 (edited) Hi guys, I have a question relating to identifying windows. I put the option "Opt("WinTitleMatchMode", 2)". Now I'm wondering if I can identify a window based on 2 key strings. For example I have 4 windows with the titles: a) "Windows Explorer - User XYZ - Login user accounts" >_< "Windows Explorer - User ABC - Login user accounts" c) "Windows Explorer - User XYZ - Admin" d) "Windows Explorer - User ABC - Admin" How would I go about identifying the Windows that have both "Windows Explorer" AND "Admin in the title? I'm trying this but it doesn't work: Winexists ("Windows Explorer" AND "Admin") Edited August 12, 2009 by Jefferds44 Link to comment Share on other sites More sharing options...
Authenticity Posted August 12, 2009 Share Posted August 12, 2009 #include <Array.au3> Local $aWins = WinList('[REGEXPTITLE:(?i)windows explorer.*?admin]') If IsArray($aWins) Then _ArrayDisplay($aWins) 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