I would like to have the experiment advance to the next screen (force end of routine) after a rating is selected on the slider AND a keyboard is pressed. I was wondering if there might be a way to implement those two conditions.
What did you try to make it work?:
I tried adding the keyboard component with a “force end of routine” and checking the “force end of routine” button for the sliders.
What specifically went wrong when you tried that?:
The experiment advances to the next screen after a slider is marker is selected.
Hi @dvbridges - thank you for the suggestion.
It does not work so far.
I tried the following: placing the code into “begin routine” and into “end routine”- no luck with either. I also changed the “resp” to match the name of my keyboard input. The Python code looks as follows:
if key_resp_4.keys and not valence11.getRating():
# reset keys
key_resp_4.keys = []
key_resp_4.rt = []
elif key_resp_4.keys and valence11.getRating():
continueRoutine = False`