That's great thank you.
Now I have created my own file with a target and distractor picture. The participant should be able to choose either one and drag to a location. As the script is below - this only works when the choice of picture was the target. For some reason when you pick the distractor this also branches on to the trial.correctmove. Any ideas?
<values>
/ a = 50%
/ b = 40%
/ c = 50%
/ d = 60%
</values>
<expressions>
/ apct = 100pct*(trial.correctmove.responsex/display.width)
/ bpct = 100pct*(trial.correctmove.responsey/display.height)
/ cpct = 100pct*(trial.incorrectmove.responsex/display.width)
/ dpct = 100pct*(trial.incorrectmove.responsey/display.height)
</expressions>
<shape blank>
/ shape = rectangle
/ size = (100%, 100%)
/ erase = false
</shape>
<picture target>
/items = ("target1.tif")
/size = (100,100)
/hposition = values.a
/vposition = values.b
/erase = false
</picture>
<picture distract>
/items = ("distract1.tif")
/size = (100, 100)
/hposition = values.c
/vposition = values.d
/erase = false
</picture>
<text move>
/ items = ("Move target to correct location")
/position = (50, 50)
/ txbgcolor = red
/ erase = false
</text>
<trial choice>
/inputdevice = mouse
/stimulusframes = [1=blank, target, distract, move]
/validresponse = (target, distract)
/branch = [if(trial.choice.response!=target) trial.correctmove]
/branch = [if(trial.choice.response!=distract) trial.incorrectmove]
</trial>
<trial correctmove>
/inputdevice = mouse
/stimulusframes = [1=blank, target]
/validresponse = (mousemove, lbuttondown)
/numframes = 1
/ontrialend = [values.a = expressions.apct; values.b = expressions.bpct]
/ branch = [if (trial.correctmove.response!="lbuttondown") trial.correctmove]
</trial>
<trial incorrectmove>
/inputdevice = mouse
/stimulusframes = [1=blank, distract]
/validresponse = (mousemove, lbuttondown)
/numframes = 1
/ontrialend = [values.c = expressions.cpct; values.d = expressions.dpct]
/ branch = [if (trial.incorrectmove.response!="lbuttondown") trial.incorrectmove]
</trial>
<block one>
/trials = [1=choice]
</block>