[open] A couple of questions for form_text_input functions
Dear all,
I experience a slight problem to execute a paradigm that I’m interested in. The basic structure of the experiment is to run one sequence of numbers (for example 49249) which is reduced by the participants accordingly to a set of given rules at the same screen (so I should use the form_text_input item). The problems are actually 3:
- How to record the reaction time of every key stroke within this item (where the time starts after the last key stroke or after the stimuli appearance);
- How to create a procedure in which the current form_text_input item stops if the participant presses a pre-determined key + enter;
- How to display feedback to the participant in which he can receive information about his accuracy and average reaction time.
Comments
Hi,
The
form_text_inputplug-in is not flexible enough to do all of this. It simply collects a multicharacter response until the participant presses enter or tab, and that's pretty much it.If you want to have more control over user input, you'll have to implement this yourself using a bit of Python scripting. You can find an example of how this can be done in this discussion:
Modifying this script is not terribly complicated, but it will require some knowledge of Python. If you are not familiar with Python, you can find some good resources to get started here:
If you use the function
set_response()(new as of 2.8.0), the feedback variables will be automatically updated when collecting responses using Python script:And then you can just give feedback in the usual way:
Cheers!
Sebastiaan
Check out SigmundAI.eu for our OpenSesame AI assistant!