If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): Win 10
PsychoPy version (e.g. 1.84.x): 3.1.2
Standard Standalone? (y/n) If not then what?: Yes
What are you trying to achieve?: I want the experiment to show a message saying “Too quick!” if the participant responds in less than X seconds ( let’s say , 3 secs)
What did you try to make it work?: I have an “instructions” routine with a “text” stimuli that calls a $word (xlsx file) with the questions, a key_resp component for the participant to press “F” or “M” .
I already achieved a “Too slow” message that starts on condition " clock.getTime() >= 6 ".
When I try to do the same for a “Too quick” , I need 2 conditions : “not key_resp” and " time =< 3 " but thing is my key_resp forces “End routine” so, if participant responds, then before it shows the message it already goes to the next line in the $word file
Also tried coding a component introducing a " core.wait(2) function after showing a message but does not do anything" .
What specifically went wrong when you tried that?:
I didn’t get an error. It just does not show the msg.
In my understanding, I guess that the problem is I’m trying to show a message at the end of each trial of a loop but when it ends because participant presses a key, it loops onto a new trial where all conditions reset. So my “text_tooquick” stimuli whenever it has the all the conditions ok, at the next frame those are reset and it does not start.