hid[-] [window]
int hid(window)
window - top-level or child window. If omitted, uses active window (with hid), or last hidden window (with hid-).
Default | hide. |
- | show. |
Hides or shows window.
The speed depends on spe.
Returns 1 if window is hidden, or 0 if visible. Calls Windows API function IsWindowVisible. See also IsWindowCloaked.
If you hide an active window, it may stay active even if invisible. To deactivate, after hid use act to activate next window. See example.
hid- does not activate the window. To unhide and activate, use act instead.
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