@WINSTATE[title] : Returns the window state of the first window matching title (which can include wildcards). The return values are:

 

Value

Window state

0

Hidden

1

Normal

2

Minimized

3

Maximized

 

If the title argument begins with a =, it is assumed to be a PID instead of a window title.