hid[-] [window]
int hid(window)
window - top-level or child window. If omitted, uses active window (with hid), or last hidden window (with hid-).
Options: - show. Default: hide.
Syntax1
Hides or shows window.
Syntax2
Returns 1 if window is hidden, or 0 if visible. Alternatively, use IsWindowVisible function.
Tips
If hidden is active window, it may stay active even if invisible. Then after hid use act to activate next window (see example).
To unhide and activate, you can use act instead of hid-.
hid "Notepad" ;;hide "Notepad" hid- "Notepad" ;;unhide "Notepad" hid- ;;unhide last hidden window Hide Notepad and make next window active: int h=win("Notepad") hid h if(h=win) act