Close.window

From AGI Wiki
Jump to navigationJump to search
The printable version is no longer supported and may have rendering errors. Please update your browser bookmarks and please use the default browser print function instead.

The close.window command will close an open print message window.

Syntax

close.window();

Remarks

If a print command is executed when reserved flag f15 (no pause windows) is set (TRUE) AGI does not pause, and the window remains on screen until dismissed. Use the close.window command to dismiss the window.

Other ways to dismiss the window include issuing another print command, redrawing the visual screen (e.g. switched to text screen then back), or entering a new room).

If a print window is not currently open, the close.window command has no effect.

Possible Errors

None.

Example

Code:
set(f15);        [ next print cmd won't pause game
print("A sample message");
...
close.window();  [ close the message window

Technical Information

Required Interpreter Version: Available in version 2.411 and above.
Byte-Code Value: 169 (0xA9 hex)

See Also

print