Accept.input

From AGI Wiki
Revision as of 00:08, 27 December 2013 by Andrew Branscom (talk | contribs) (Created page with "The '''accept.input''' command allows the player to enter input, if they have been prevented from doing so by a call to prevent.input. If the input prompt is currently hid...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigationJump to search

The accept.input command allows the player to enter input, if they have been prevented from doing so by a call to prevent.input. If the input prompt is currently hidden, it is displayed again, along with any text that was on it when it was hidden.

accept.input();

 


Parameters

This command does not take any parameters.

 

Possible errors

None known.

 

Examples

The following example hides the input line and then displays it again. Note that this will likely have no obvious effect if executed exactly as it appears below, because the input line will be disabled and immediately re-enabled.

prevent.input(); // hides the input line
accept.input(); // shows the input line

 

See Also

 

Sources

Some of the text in the article is taken from the AGI Studio Help File.