Group: Forum Members
Posts: 5,
Visits: 15
|
Hi all,
I am trying to create a trial where participants enter codes - followed by pressing 'next' for each code. When they want to stop entering codes, they should press 'stop'.
This means I need to have page that shows them a place where they can enter the codes, and below a button that says 'next' and a button that says 'stop' The script with only a button for next, works fine. But I cannot figure out how to create two buttons and how to create a command that stops the trial when they press 'stop'.
Here's what I have so far:
<openended codes> /stimulusframes=[1=codes,input] /position = (50%, 50%) /linelength = 40 /numlines = 1 /skip = [values.time > 600000] /ontrialend = [values.time = values.time + openended.codes.latency] /ontrialend = [values.input = values.input + 1] /buttonlabel = "next" </openended>
Any help would be highly appreciated!
|