Hello everyone,
I want to have participants answer with a rating on the slider. I want them to see with a marker what rating they clicked on. As stated in previous posts, the “force end of routine” does not allow for that, as it ends the routine before the marker is drawn.
Is there a way I could have the routine end, say 0.5 seconds after they click on the slider?
I’ve found code that works for text components in this post Forcing End of Routine One Second After Mouse Click
#Begin routine
clicked = False # flag for starting timer
Each frame
if mouse.isPressedIn(text) and not clicked:
clicked = True
endTime = t
if clicked and t > endTime + 0.5:
continueRoutine = False
So my question is, does that work also for slider components? When I try to change it to mouse.isPressedIn(slider), it ignores the code and ends the routine immediately on click.
I don’t have much experience with coding, so any ideas would be appreciated! Thanks in advance!