| Reference | Downloads | Github

Only allow typed responses after a set period of time and show typed response

What are you trying to achieve?:
I’m trying to make sure that the participant has to think about their answer for at least 3 seconds before typing a response. I’d also like for PsychoPy to show their typed response.

What did you try to make it work?:
In terms of showing their typed response, I use the same code as in here

Thing is, it doesn’t quite appear like there’s an obvious way to set the code to run at a specific time, unlike the keyboard component.

If there’s no way around it, I guess I could set the stimuli to present for 3 seconds in one routine and for the following routine to run the code and re-present the stimuli. However, I am concerned about how that might make the stimuli flash in the online experiment.

Does anyone know how to make the code run 3 seconds after stimuli presentation without putting the code/stimuli in a second routine?

In my code where it says if len(keys) you could add “and t > 3”