Close.window
From AGI Wiki
Revision as of 19:57, 27 March 2019 by Andrew Korson (talk | contribs) (Created page with "The '''close.window''' command will close an open print message window. == Syntax == close.window(); == Remarks == If a '''print''' command is executed when reserved...")
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:
<syntaxhighlight lang="agi"> set(f15); [ next print cmd won't pause game print("A sample message"); ... close.window(); [ close the message window </syntaxhighlight>
Technical Information
Required Interpreter Version: | Available in version 2.411 and above. |
Byte-Code Value: | 169 (0xA9 hex) |