[ < ] [ > ]   [ << ] [ Up ] [ >> ]         [Top] [Contents] [Index] [ ? ]

2.3.4.12 Wait-Present-Response (#P)

The Wait-Present-Response command is a compound command that presents a string but continuously checks for a response, before and after the string is displayed.

Name:
Wait-Present-Response
Class:
Display Text
Code:
#P
Syntax:
#P[time,string]
System:
Waits time milliseconds before displaying string. Checks for response at all times, before and after display.
Requires:
Cogsys must be in a text mode.
Output:
Writes the key pressed and reaction time to output.

Breakout:
YES

Test Files:
`WTPR_T01.IN'
tests basic operation

Examples:

input
#P[50,hello]
subject
Presses z after 20 milliseconds.
cogsys
Displays nothing, writes key and time to output.
output
z20

input
#P[50,hello]
subject
Presses z after 2000 milliseconds.
cogsys
Displays `hello' after 50 milliseconds.
output
z2000



This document was generated by Usman Muzaffar on June, 28 2000 using texi2html