Vizard 8 » Command Index » Vizard modules » viztask » <viztask>.waitKeyChar
8.0

<viztask>.waitKeyChar

Wait for a specified keyboard character

<viztask>.waitKeyChar(  
chars  
)  
chars
Characters to wait for.

If chars is a sequence, then the Condition will wait for one of the characters to be entered.

If chars is None, then the Condition will wait for any character to be entered.

Remarks

This command will create a Condition object that will wait for one of the specified characters to be entered.

The yielded command returns a viz.Data object with the following information about the condition:

Properties

char

Unicode string containing the character that was entered

time

The precise time of the character entry

Return Value

viztask.Condition object

See also

<viztask>.waitKeyDown
<viztask>.waitKeyUp