PsychoPy version (e.g. 1.84.2):
I would like to provide feedback (reaction time) when participant pressed ‘c’ and ‘m’ keys roughly simultaneously using builder, but would like to register that pressing only either key is an error.
I created a routine called feedback for BiGoResp (Keyboard response, storing “all keys”).
In the code property, begin experiment contains
Then in the begin routine tab, I put
if BiGoResp.corr and BiGoResp.keys=='c' and BiGoResp.keys=='m': msg="RT=%.3f" %(BiGoResp.rt) else: msg="missed!"
This code is obviously not working. Because whichever the key I press, I always get “missed!”. Correct response is defined in an associated excel file specifying [‘c’,‘m’].
I would appreciate if someone can help me solving this problem.