Set window always-on-top

Syntax1 - set state

ont[-] [window]

 

Syntax2 - get state

int ont([window])

 

Parameters

window - top-level or child window. Default: active window.

 

Options:

Default on top.
- not on top.

 

Remarks

Syntax1: Makes window always-on-top or not always-on-top, and also activates. Only top-level windows can have always-on-top style. If it is child window, brings it to the top or bottom of the Z order of immediate parent window.

 

The speed depends on spe.

 

Syntax2: Returns 1 if window has always-on-top style, or 0 if not. If it is child window, returns 1 if it is in the top of the Z order, or 0 if not.

 

Examples

ont "Notepad" ;;set "Notepad" always-on-top
ont- "Notepad" ;;set "Notepad" not always-on-top