Jump to content

WinList that has certain char


 Share

Recommended Posts

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 by Fragan
Link to comment
Share on other sites

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 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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...