Reply To: Timeout

PennController for IBEX Forums Support Timeout Reply To: Timeout

#5737
Jeremy
Keymaster

Hi,

You can use a timer which you end early if your participant presses a key:

newKey("FJ").callback( getTimer("timeout").stop() ).log("all")
,
newTimer("timeout", 5000).start().log().wait()
,
getKey("FJ")
    .disable()
    .test.pressed().success( newText("Good job").print() )
    .failure( newText("Too slow").print() )

Jeremy