collecting text_input responses
in OpenSesame
Hello, I am conducting an experiment using OS and want to present images to participants, whilst concurrently collecting their responses (where I want them to type out their feedback). I prefer to have the image on the screen while they type out their response. Currently, I haven't been able to do this as I am only limited to keyboard and mouse-click responses in OpenSesame. Could anyone help me with the steps to do this?
FYI: I am a newbie to Opensesame and python programming so will prefer if the steps are quite simple to follow.
Thank you.
Comments
Hi @SKO11,
To achieve what you are describing,. you would need to embed the response part of your trial as a loop that runs a high number of times until a condition is met (for example the participant pressing ENTER), take keyboard responses and accumulate (concatenate them into a variable. You can make the text typed by participants visible on the same screen as the picture, but you should use a feedback object to present the picture instead of a sketchpad (because the feedback object can be modified on the fly while the sketchpad object is prepared before the trial begins and cannot be changed during the trial).
I described the method in previous posts that you should find useful:
Post 1: https://forum.cogsci.nl/discussion/7816/can-i-show-keyboard-response-to-the-participant#latest
Post 2 (follow up): https://forum.cogsci.nl/discussion/7909/sort-the-concatenated-response-and-compare-it-to-the-answer
Note that you'd have to adapt the code used in these examples and that the example also rearranges the responses in alphabetical order (which, in your case, you'd want to remove from the task).
These examples should help you understand how to collect several keyboard responses while a stimulus is presented.
Good luck!
Fabrice.
Hello Fab,
Thank you for your swift response. I followed the tread you gave me and the example code you placed in dropbox. But I realized that with the first option (post1), which was the better one related to what I wanted to do, allowed for only three key responses but I want the participant to be able to type everything so what do I set the respcount to be able to enter the entire set of strings. Also, when the participant is done, is it the return key that they can use to move to the next picture, per the code in post1? because I want to indicate that in the image presented so they are not confused.
Thank you.