How to use
This is the main source code for the experiment. If you want to use it, you should copy the actual zip file to your own PsyToolkit account, because often there are other files included for stimuli.
The source code for pacedreading2
table sent
"John brought cookies for his mother. His father does not like cookies."
"Mary cooked dinner for her son and daughter. They like spicy fried beans with sauce."
"Clara is looking after her pets. She has cats and dogs."
"Mickey likes to take walks in the forest. Especially when Minnie joins him."
"Donald and Daisy enjoy bike rides along the beautiful lake in their home town."
task paced
keys n
show text "Press the n key to start see the first word." 0 -50
show text "Then press the n key each time for the following words." 0 50
readkey 1 9999
clear -1 -2
#
textbox new 0 0 700 400 white black
textbox 1 lock
#
set %%words split @1
set $l %%words size ## how many words
set %newword %%words remove first
set %newsentence %newword
set $mycounter 1
set &&reactionTimes clear
while $mycounter <= $l
textbox 1 text %newsentence
readkey 1 9999
clear -1
set &&reactionTimes append RT
set %newword %%words remove first
set %newsentence %newsentence " " %newword
set $mycounter increase
while-end
textbox 1 clear ## removes textbox
show text "Well done...just wait until next sentence"
delay 500
show text ". " 0 30
delay 500
show text ".. " 0 30
delay 500
show text "..." 0 30
delay 500
clear screen
set %sentence @1
set &&reactionTimes fillup 20 -1
save $l %sentence &&reactionTimes
block test
tasklist
paced 5
end