From the helpfile:
Quote:

$window(N/@name)
Returns properties for a window.

...

state returns minimized/maximized/hidden/normal


Active isn't in there. $active tells you if the window is active; is that not enough? wink