--- In [email protected], "Owen Watson" <[EMAIL PROTECTED]> wrote:
>
> For the last supplementary question, how do you close every window
> apart from the frontmost?
>

maybe what you're asking is how to identify which window is active?

local stayopen=win.handle("active")

or has focus

local stayopen=win.getfocus()

Once you have the handle to the window you want to stay open, you can
close other windows that are not that window. But be sure you really
want to close those windows. As previously shown, its probably not
safe to close "every" other window, so you will want to exclude
windows of exenames that should stay open.

You can also control whether hidden windows are included in the list
of window handles that will get tested/closed. In the previous post
only visible windows were requested.

Regards,
Sheri

Reply via email to