local mainwin=window("firstwindow","c=mainclass")
local subs=win.childhandlelist(mainwin,"c=subclass")

subs has some visible and some not visible windows.

I want to exclude non-visible subs and identify the two visible
windows having the lowest win.top coordinate (in other words, the two
closest to the top of the screen), giving them distinguishing names
like HighHan and MidHan.

The number of subs and their order in the list relative to their
win.top coordinate is not consistent.

Is there an elegant way to identify HighHan and MidHan?

Thanks,
Sheri

Reply via email to