Typed responses

PsychoPy now has an editable text box component to get typed responses. It is under development, but worth touching on.

textBox

The texbox component is very similar to the text stimulus, except that we can make it ‘editable’. It can therefore be found under both ‘Stimuli’ and ‘Response’ sections of the components panel.

textBox

textBox

If you want to check that the typed string was correct you can add a code component and, in the “end routine” tab use

if corAns in textbox.text:
        correct = 1
else:
        correct = 0

This will test if the correct answer was within the typed string (e.g. ignoring any spaces after the response)

What next?

There is alot more we could talk about:

Block designs and counterbalancing are something many want to implement.

Time permitting we can talk more about Code Components