Difference between revisions of "Accept.input"

From AGI Wiki
Jump to navigationJump to search
(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...")
 
Line 36: Line 36:
  
 
[[Category:Logic]]
 
[[Category:Logic]]
 +
[[Category:Logic Commands]]
 +
[[Category:System Commands]]

Revision as of 00:18, 27 December 2013

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.