Hide or show window

Syntax1 - set state

hid[-] [window]

 

Syntax2 - get state

int hid(window)

 

Parts

window - top-level or child window. If omitted, uses active window (with hid), or last hidden window (with hid-).

Options: - show. Default: hide.

 

Remarks

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-.

 

Examples

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