Fragan Posted August 22, 2018 Share Posted August 22, 2018 (edited) Lets say i have a group of windows: 1- "firstone - ABCD" 2- "secondone - ABCD" 3- "thirdone - ABCD" I wanna have an array with ["firstone", "secondone", "thirdone"] i tried with WinList("ABCD") but seems that its not correct, and i dont wanna check with a loop if tons of strings has "- ABCD" and those x)) anyone has a solution for that ? Edited August 22, 2018 by Fragan Link to comment Share on other sites More sharing options...
jdelaney Posted August 22, 2018 Share Posted August 22, 2018 (edited) Here you go: #include <Array.au3> AutoItSetOption("WinTitleMatchMode",2) $a = WinList("ABCD") _ArrayDisplay($a) Or: WinList("[REGEXPTITLE:firstone.*|secondone.*|thirdone.*]") Or something like: #include <Array.au3> Local $aWindows[1]=[""] Local $a[3] = ["firstone","secondone","thirdone"] For $i = 0 To UBound($a)-1 $aTemp = WinList($a[$i]) _ArrayConcatenate($aWindows,$aTemp) Next Edited August 23, 2018 by jdelaney IEbyXPATH-Grab IE DOM objects by XPATH IEscriptRecord-Makings of an IE script recorder ExcelFromXML-Create Excel docs without excel installed GetAllWindowControls-Output all control data on a given window. 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