> As I understand it, you want to wait until the window is either tray-minned 
> or visible.    Close it in either case.  Not sure I understand if this makes 
> sense, but following show do it.
> 
> local cap = "the caption"
> wait.for(2000, win.visible(cap)||win.trayminned(cap))
> win.close(cap) // will fail silently if neither happens after 2000 ms
>
Yes, I've thought this way but strange thing:
this code is unsuccessful.

And this does what it should:

wait.until (win.trayminned("caption"),win.visible("caption"))
Window.Close("caption")

This code closes the window no matter how this window tries to stay opened when 
it's parent software starts first.

If I try to use a variable instead of "caption" – window stays 
not minned.

Reply via email to