Post by mca on Apr 19, 2021 12:39:10 GMT
Hi everyone!
I am hoping to use readkeys so that participants can enter short phrases in an experiment, but not necessarily correct/incorrect. Instead, participants are shown an item, and asked to come up with an alternate/creative use for it (divergent thinking/creativity task). Not the intended function of readkeys, but thought it might adapt. There are a total of 6 items, and eventually I'd like there to be 3 blocks/tasks with 2 items each.
Is it possible to use arrays in conjunction with readkeys? For example, I'd like for participants to generate uses to two of the items in an alternate manner, for several trials in the first block (pencil, string, pencil, string...).
For the next task/block I want a different two items shown (brick, cup, brick, cup...). And for the last one the final 2 items. Ideally these would be randomly selected for each participant. I can't get the script to run when any sort of array is used - not sure if arrays can't be used for show text? I attempted using an "order" table similar to what was suggested in a previous thread, but still no luck. Below is general code for one task/block without arrays, though eventually I'd like there to be 3 tasks/blocks.
Also open to alternatives if readkeys is not the best function. I considered using a survey instead, but hoping to retain RT info.
options
background color grey
fonts
arial 24
table objects
"pencil"
"brick"
"string"
"barrel"
"tire"
"cup"
task AUT
table objects
show text "generate an alternate use for the following item" 0 -200 black
show text @1 0 -150 black
show rectangle 0 0 500 50 white
text color black
readkeys option size 50
readkeys option space 18
readkeys @1 100000
clear screen
delay 1000
clear -1
delay 1000
save BLOCKORDER BLOCKNAME @1 WORD RT
blockorder
AUT
block AUT
tasklist
AUT 12 all_before_repeat
end
I am hoping to use readkeys so that participants can enter short phrases in an experiment, but not necessarily correct/incorrect. Instead, participants are shown an item, and asked to come up with an alternate/creative use for it (divergent thinking/creativity task). Not the intended function of readkeys, but thought it might adapt. There are a total of 6 items, and eventually I'd like there to be 3 blocks/tasks with 2 items each.
Is it possible to use arrays in conjunction with readkeys? For example, I'd like for participants to generate uses to two of the items in an alternate manner, for several trials in the first block (pencil, string, pencil, string...).
For the next task/block I want a different two items shown (brick, cup, brick, cup...). And for the last one the final 2 items. Ideally these would be randomly selected for each participant. I can't get the script to run when any sort of array is used - not sure if arrays can't be used for show text? I attempted using an "order" table similar to what was suggested in a previous thread, but still no luck. Below is general code for one task/block without arrays, though eventually I'd like there to be 3 tasks/blocks.
Also open to alternatives if readkeys is not the best function. I considered using a survey instead, but hoping to retain RT info.
options
background color grey
fonts
arial 24
table objects
"pencil"
"brick"
"string"
"barrel"
"tire"
"cup"
task AUT
table objects
show text "generate an alternate use for the following item" 0 -200 black
show text @1 0 -150 black
show rectangle 0 0 500 50 white
text color black
readkeys option size 50
readkeys option space 18
readkeys @1 100000
clear screen
delay 1000
clear -1
delay 1000
save BLOCKORDER BLOCKNAME @1 WORD RT
blockorder
AUT
block AUT
tasklist
AUT 12 all_before_repeat
end