|
Post by mary1990 on Jun 19, 2021 17:04:40 GMT
Hello everyone,
I'm trying to build a task where an picture is shown and the participant has to write a description of what they see. I would like the trial to end when the participant writes a certain word (which is not communicated to the participant) during his description, without the participant having to press enter, and collect the reaction time when he writes the word. Is it possible to program this task? Here is the script I have written so far. As it is written it only returns the text and the reaction time at the moment when enter is pressed.
options fullscreen resolution 1100 800 background color white bitmaps pic pic.png empty_box empty_box.png table my_words "word" 1 task pic table my_words show bitmap pic 0 0 show bitmap empty_box 0 250 text color black readkeys option size 100 readkeys option show -400 250 readkeys @1 100000 clear screen if STATUS == CORRECT set $x @2 fi if STATUS == WRONG set $x 0 fi delay 1000 clear -1 delay 1000 save WORD RT $x block test tasklist pic 1 end
I thank in advance those who will answer me.
|
|