min [window] max [window] res [window]
int min([window]) int max([window]) int res([window])
window - top-level or child window. Default: active window.
Syntax1
Minimizes (min), maximizes (max) or restores (res) window.
If the window is minimized, res restores it to previous state, which can be restored or maximized. If the window is maximized, res restores it to restored state.
Syntax2
Returns 1 if window is minimized (min), maximized (max) or restored (res). If not, returns 0.
min "Notepad" ;;minimize "Notepad" window restore "Notepad" window to previous state if it is minimized int hwnd=win("Notepad") if(min(hwnd)) res hwnd