Hide or show window

Syntax1 - set state

hid[-] [window]

 

Syntax2 - get state

int hid(window)

 

Parameters

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

 

Options:

Default hide.
- show.

 

Remarks

Syntax1

Hides or shows window.

 

The speed depends on spe.

 

Syntax2

Returns 1 if window is hidden, or 0 if visible. Alternatively, use IsWindowVisible function.

 

Tips

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.

 

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