PennController for IBEX › Forums › Support › Timeout › Reply To: Timeout
June 29, 2020 at 11:09 am
#5737
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