PennController for IBEX › Forums › Support › Issue with key press during timer › Reply To: Issue with key press during timer
September 2, 2020 at 2:35 pm
#6037
Jeremy
Keymaster
Thanks for the clarification. Then this should do what you want:
newText("num", row.Solution) .css("color","white") .css("font-size", "200px") .print() , newKey("pressOnArrow", "ArrowLeft", "ArrowRight") .log("all") .callback( getTimer("exposure").stop(), getTimer("timeout").stop() ) , newTimer("exposure", 300).start().wait() , getText("num").remove() , getKey("pressOnArrow").test.pressed() .failure( newTimer("timeout", 5000).start().log().wait() ) , getKey("pressOnArrow").disable() ) .log( "Correct_answer" , row.Correct_answer ) .log( "ID" , getVar("ID")
Let me know if problems persist
Jeremy