OS (e.g. Win10): Win10
PsychoPy version (e.g. 1.84.x): 2021.1.0
Standard Standalone? (y/n) y
What are you trying to achieve?: Assign correct keyboard response to variable in code component, have it recognised as “Correct answer” by subsequent keyboard component
What did you try to make it work?: Tried a simple new "experiment’’ with just 5 loops of trial, a code assigning one key as answer, and keyboard component after it, in order, with default allowable keyboard responses, one of which assigned as correct. Tried using ‘dollar sign’ and not using it ahead of variable name in “Correct answer” textbox of keyboard component dialog (apparently not needed anymore but tried it anyway). Tried “y” and “space” as correct assigned answer. But no response is recognised as correct. Data file shows “trial_resp.corr” = 0 all the time. Tried opening an old experiment opened in this version of PsychoPy; it still works, with same correct answer logic (but the dialog box opens up differently, it doesn’t show the “$” sign ahead of the Correct answer box, but same version of PsychoPy). So just creating a new experiment seems to fail in this basic way.
No error message throughout any of this.