10-09-2020, 08:33 PM
Hi Gintaras,
Searched to no avail, I have a program that can have multiple instances of the same window name open at one time.
Need to figure out how many instances of each window is open.
I'm stuck! Any thoughts on reliable way to accomplish are appreciated.
Thanks in advance.
Code so far, below.
Scott
_____________
Function OpenWindows___NumOfTimes
Searched to no avail, I have a program that can have multiple instances of the same window name open at one time.
Need to figure out how many instances of each window is open.
I'm stuck! Any thoughts on reliable way to accomplish are appreciated.
Thanks in advance.
Code so far, below.
Scott
_____________
Function OpenWindows___NumOfTimes
int counter ;; = number of windows in list
str names ;; = list of window names
WindowList___Hidden(counter names) ;; <---- Modified GetWindowList function to include Hidden windows and a counter.
ARRAY(str) a
a = (names)
int i
for(i 0 a.len) out "%i %s" i a[i]
out "[][]____ The List of Windows open ___---> str s:[]"
s=a
out s ;; --> The List of open windows. converted array to use as reference against str names.
;; now trying to see, how many instances of each window is open?
;; having trouble here.