If this template helps then use it. If not then just delete and start from scratch.
OS (e.g. Win10): Windows 7 Enterprise
PsychoPy version (e.g. 1.84.x): v2023.1.2 (trying to upgrade code that worked in v2020.1.3)
Standard Standalone? (y/n) If not then what?:
What are you trying to achieve?:
I’m trying to upgrade code that worked in v2020.1.3. The code is supposed to wait for a correct keypress, a match for corrAns in the .xlsx file provided to the loop. It is also supposed to record any incorrect keypresses in another variable, and only progress when the correct key is pressed. Then, some custom code is terminating the loop after a time limit is exceeded.
Everything appears to work until the time limit condition is exceeded which should end the routine and progress to the next part of the code (a 0.5s fixation cross). But the time limit custom code is not the problem, I have removed that and the same issue with ending the routine and continuing the code is still there, so the issue appears to be related to AllowedKeys
What specifically went wrong when you tried that?:
I think this is the main issue that is causing headaches:
DEPRECATION AllowedKeys variable
corrAns is not string- or list-like.
I have working code in v2020.1.3 but it only works in that specific version. I’m trying to get it working in a more recent version as I think that will be better supported to move the paradigm online.
DEPRECATION_allowed_keys.psyexp (153.7 KB)