Okay, I'm stumped.
I've searched and searched both within this Forum and in the TechSupport Database, and I haven't found a code example that allows one to distinguish between multiple windows applications with the same window title. I found a great one about shell windows, some about file system windows, but these are electron quasi-Windows windows. Clearly, I haven't stumbled across the right search terms.
I understand that winIdGet() is the WIL function that provides a usable window handle - but it requires a unique partial-window-name as input. This basic script loops through the window titles and tries to assign unique window IDs to each successive Zoom window - but clearly it is inadequate (returning the winPosition from the first Zoom window 3x).
_x = winItemize()
_o = ``
_p = ``
For _n = 1 to itemCount(_x, @TAB)
_z = itemExtract(_n, _x, @TAB)
if strIndex(_z, `Zoom`, 0, @FWDSCAN)
_o := _z : @CRLF
_a = winIdGet(_z)
_p := winPosition(_a) : @CRLF
endif
Next
message(`All Zoom Windows:`, _o) ;Zoom || Zoom Meeting || Zoom || Zoom || Zoom Cloud Meetings
message(`All Zoom Positions:`, _p) ;870,129,986,246 || -694,62,-52,737 || 870,129,986,246 || 870,129,986,246 || 343,300,677,745
The window in which I'm interested has a window position like [215,105,785,865] (I masked it with a Notepad window and got the size of the Notepad window), so I'm sure I don't have the right window anywhere in there.
I could use another tip...