|
Post by mary1990 on Jun 18, 2021 17:41:49 GMT
Hi,
In my experiment I show a picture and participants have to write down what happens in the picture. They have a maximum time of 3 minutes, but the moment they write a specific word, the task has to stop automatically, without pressing other keys like "enter". How can I do this?
Thank you to those who will help me.
|
|
|
Post by PsyToolkit on Jun 24, 2021 8:08:43 GMT
|
|
|
Post by mary1990 on Jun 28, 2021 6:47:49 GMT
Thank you for your response. I have already tried using "readkeys" but the moment the participant types the specific word (which he doesn't know), the trial doesn't stop.
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
How can I do this? Thank you very much!
|
|