PennController for IBEX › Forums › Support › Trouble with Timer – not stopping and not letting me press a key › Reply To: Trouble with Timer – not stopping and not letting me press a key
Hello Lorrainy,
Your script works as expected: when it reaches the .wait()
line on the Key element, it stays there until the A or L key is pressed. Once either key is pressed, it moves on to the next line, which is the callback
line, and on to the next lines until it reaches the .wait()
line on the Timer element, and stays there until the timer ends
So only after an initial key press on A or L will further key presses on A or L stop the timer. If you never press A or L, the script will remain on the Key element’s wait
line forever. If you press A or L once, it will stay on the Timer element’s wait
line until the 6 seconds have passed. If you press A or L a second time within 6s, then the timer will end early and so will the trial
If I understand you correctly, you simply want to take out the .wait()
line on the Key element
Jeremy