Millisecond Forums

Drag and Drop expt

https://forums.millisecond.com/Topic28453.aspx

By Hidee - 3/7/2020

Hi, I am hoping someone very helpful can assist me. 
I have tried to follow a few suggested templates, still no luck. 
I have trying to create a drag and drop task however, I can not get the selection, drag then drop to happen.  I can not see the shape I have created as well. 
Can someone please highlight where I am going wrong.
Any assistance will be greatly appreciated.

<expt >

</expt>


<text Start>
/ items = ("Drag all the drink images containing alcohol")
/ txcolor = black
/ erase = false
/ hjustify = left
/ fontstyle = ("Arial", 4.63%, true, true, false, false, 5, 1)
/ position = (50%, 10%)
</text>

<shape bluecircle>
/ shape = rectangle
/ color = gold
/ position = (70%, 50%)
/ droptarget = true
/ size = (30%, 40%)
</shape>

<picture drag1>
/ items = ("drag1.png")
/ position = (10%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag2>
/ items = ("drag2.png")
/ position = (20%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag3>
/ items = ("drag3.png")
/ position = (30%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag4>
/ items = ("drag4.png")
/ position = (40%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag5>
/ items = ("drag5.png")
/ position = (10%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag6>
/ items = ("drag6.png")
/ position = (20%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag7>
/ items = ("drag7.png")
/ position = (30%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag8>
/ items = ("drag8.png")
/ position = (40%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag9>
/ items = ("drag9.png")
/ position = (10%, 90%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag10>
/ items = ("drag10.png")
/ position = (20%, 90%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<trial mytrial>
/ stimulustimes = [1=start; 1=bluecircle; 1=drag1; 1=drag2; 1=drag3; 1=drag4; 1=drag5; 1=drag6; 1=drag7; 1=drag8; 1=drag9; 1=end; 30000 = end]
/ showmousecursor = true
/ inputdevice = dragdrop
/ correctresponse = ("drag2","drag4","drag6","drag8","drag10")
/ validresponse = ("drag2","drag4","drag6","drag8","drag10")
/ response = anyresponse
/ recorddata = true
/ responseinterrupt = frames
/ beginresponseframe = 0
</trial>

<block myblock>
/ trials=[1=mytrial]
</block>

<text end>
/ items = ("Click here to end the task.Thanks")
/ txbgcolor = black
/ txcolor = white
/ erase = false
/ vjustify = center
/ size = (24%, 6%)
/ dropsource = true
/ position = (85%, 80%)
/ select =next(end)
</text>

By Dave - 3/9/2020

Hidee - 3/7/2020
Hi, I am hoping someone very helpful can assist me. 
I have tried to follow a few suggested templates, still no luck. 
I have trying to create a drag and drop task however, I can not get the selection, drag then drop to happen.  I can not see the shape I have created as well. 
Can someone please highlight where I am going wrong.
Any assistance will be greatly appreciated.

<expt >

</expt>


<text Start>
/ items = ("Drag all the drink images containing alcohol")
/ txcolor = black
/ erase = false
/ hjustify = left
/ fontstyle = ("Arial", 4.63%, true, true, false, false, 5, 1)
/ position = (50%, 10%)
</text>

<shape bluecircle>
/ shape = rectangle
/ color = gold
/ position = (70%, 50%)
/ droptarget = true
/ size = (30%, 40%)
</shape>

<picture drag1>
/ items = ("drag1.png")
/ position = (10%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag2>
/ items = ("drag2.png")
/ position = (20%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag3>
/ items = ("drag3.png")
/ position = (30%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag4>
/ items = ("drag4.png")
/ position = (40%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag5>
/ items = ("drag5.png")
/ position = (10%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag6>
/ items = ("drag6.png")
/ position = (20%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag7>
/ items = ("drag7.png")
/ position = (30%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag8>
/ items = ("drag8.png")
/ position = (40%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag9>
/ items = ("drag9.png")
/ position = (10%, 90%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag10>
/ items = ("drag10.png")
/ position = (20%, 90%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<trial mytrial>
/ stimulustimes = [1=start; 1=bluecircle; 1=drag1; 1=drag2; 1=drag3; 1=drag4; 1=drag5; 1=drag6; 1=drag7; 1=drag8; 1=drag9; 1=end; 30000 = end]
/ showmousecursor = true
/ inputdevice = dragdrop
/ correctresponse = ("drag2","drag4","drag6","drag8","drag10")
/ validresponse = ("drag2","drag4","drag6","drag8","drag10")
/ response = anyresponse
/ recorddata = true
/ responseinterrupt = frames
/ beginresponseframe = 0
</trial>

<block myblock>
/ trials=[1=mytrial]
</block>

<text end>
/ items = ("Click here to end the task.Thanks")
/ txbgcolor = black
/ txcolor = white
/ erase = false
/ vjustify = center
/ size = (24%, 6%)
/ dropsource = true
/ position = (85%, 80%)
/ select =next(end)
</text>


Please provide the files the script requires to run. Thank you.
By Hidee - 3/9/2020

Dave - 3/9/2020
Hidee - 3/7/2020
Hi, I am hoping someone very helpful can assist me. 
I have tried to follow a few suggested templates, still no luck. 
I have trying to create a drag and drop task however, I can not get the selection, drag then drop to happen.  I can not see the shape I have created as well. 
Can someone please highlight where I am going wrong.
Any assistance will be greatly appreciated.

<expt >

</expt>


<text Start>
/ items = ("Drag all the drink images containing alcohol")
/ txcolor = black
/ erase = false
/ hjustify = left
/ fontstyle = ("Arial", 4.63%, true, true, false, false, 5, 1)
/ position = (50%, 10%)
</text>

<shape bluecircle>
/ shape = rectangle
/ color = gold
/ position = (70%, 50%)
/ droptarget = true
/ size = (30%, 40%)
</shape>

<picture drag1>
/ items = ("drag1.png")
/ position = (10%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag2>
/ items = ("drag2.png")
/ position = (20%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag3>
/ items = ("drag3.png")
/ position = (30%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag4>
/ items = ("drag4.png")
/ position = (40%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag5>
/ items = ("drag5.png")
/ position = (10%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag6>
/ items = ("drag6.png")
/ position = (20%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag7>
/ items = ("drag7.png")
/ position = (30%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag8>
/ items = ("drag8.png")
/ position = (40%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag9>
/ items = ("drag9.png")
/ position = (10%, 90%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag10>
/ items = ("drag10.png")
/ position = (20%, 90%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<trial mytrial>
/ stimulustimes = [1=start; 1=bluecircle; 1=drag1; 1=drag2; 1=drag3; 1=drag4; 1=drag5; 1=drag6; 1=drag7; 1=drag8; 1=drag9; 1=end; 30000 = end]
/ showmousecursor = true
/ inputdevice = dragdrop
/ correctresponse = ("drag2","drag4","drag6","drag8","drag10")
/ validresponse = ("drag2","drag4","drag6","drag8","drag10")
/ response = anyresponse
/ recorddata = true
/ responseinterrupt = frames
/ beginresponseframe = 0
</trial>

<block myblock>
/ trials=[1=mytrial]
</block>

<text end>
/ items = ("Click here to end the task.Thanks")
/ txbgcolor = black
/ txcolor = white
/ erase = false
/ vjustify = center
/ size = (24%, 6%)
/ dropsource = true
/ position = (85%, 80%)
/ select =next(end)
</text>


Please provide the files the script requires to run. Thank you.

Dave - 3/9/2020
Hidee - 3/7/2020
Hi, I am hoping someone very helpful can assist me. 
I have tried to follow a few suggested templates, still no luck. 
I have trying to create a drag and drop task however, I can not get the selection, drag then drop to happen.  I can not see the shape I have created as well. 
Can someone please highlight where I am going wrong.
Any assistance will be greatly appreciated.

<expt >

</expt>


<text Start>
/ items = ("Drag all the drink images containing alcohol")
/ txcolor = black
/ erase = false
/ hjustify = left
/ fontstyle = ("Arial", 4.63%, true, true, false, false, 5, 1)
/ position = (50%, 10%)
</text>

<shape bluecircle>
/ shape = rectangle
/ color = gold
/ position = (70%, 50%)
/ droptarget = true
/ size = (30%, 40%)
</shape>

<picture drag1>
/ items = ("drag1.png")
/ position = (10%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag2>
/ items = ("drag2.png")
/ position = (20%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag3>
/ items = ("drag3.png")
/ position = (30%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag4>
/ items = ("drag4.png")
/ position = (40%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag5>
/ items = ("drag5.png")
/ position = (10%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag6>
/ items = ("drag6.png")
/ position = (20%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag7>
/ items = ("drag7.png")
/ position = (30%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag8>
/ items = ("drag8.png")
/ position = (40%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag9>
/ items = ("drag9.png")
/ position = (10%, 90%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag10>
/ items = ("drag10.png")
/ position = (20%, 90%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<trial mytrial>
/ stimulustimes = [1=start; 1=bluecircle; 1=drag1; 1=drag2; 1=drag3; 1=drag4; 1=drag5; 1=drag6; 1=drag7; 1=drag8; 1=drag9; 1=end; 30000 = end]
/ showmousecursor = true
/ inputdevice = dragdrop
/ correctresponse = ("drag2","drag4","drag6","drag8","drag10")
/ validresponse = ("drag2","drag4","drag6","drag8","drag10")
/ response = anyresponse
/ recorddata = true
/ responseinterrupt = frames
/ beginresponseframe = 0
</trial>

<block myblock>
/ trials=[1=mytrial]
</block>

<text end>
/ items = ("Click here to end the task.Thanks")
/ txbgcolor = black
/ txcolor = white
/ erase = false
/ vjustify = center
/ size = (24%, 6%)
/ dropsource = true
/ position = (85%, 80%)
/ select =next(end)
</text>


Please provide the files the script requires to run. Thank you.

Thanks for replying. 
By Dave - 3/9/2020

Hidee - 3/9/2020
Dave - 3/9/2020
Hidee - 3/7/2020
Hi, I am hoping someone very helpful can assist me. 
I have tried to follow a few suggested templates, still no luck. 
I have trying to create a drag and drop task however, I can not get the selection, drag then drop to happen.  I can not see the shape I have created as well. 
Can someone please highlight where I am going wrong.
Any assistance will be greatly appreciated.

<expt >

</expt>


<text Start>
/ items = ("Drag all the drink images containing alcohol")
/ txcolor = black
/ erase = false
/ hjustify = left
/ fontstyle = ("Arial", 4.63%, true, true, false, false, 5, 1)
/ position = (50%, 10%)
</text>

<shape bluecircle>
/ shape = rectangle
/ color = gold
/ position = (70%, 50%)
/ droptarget = true
/ size = (30%, 40%)
</shape>

<picture drag1>
/ items = ("drag1.png")
/ position = (10%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag2>
/ items = ("drag2.png")
/ position = (20%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag3>
/ items = ("drag3.png")
/ position = (30%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag4>
/ items = ("drag4.png")
/ position = (40%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag5>
/ items = ("drag5.png")
/ position = (10%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag6>
/ items = ("drag6.png")
/ position = (20%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag7>
/ items = ("drag7.png")
/ position = (30%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag8>
/ items = ("drag8.png")
/ position = (40%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag9>
/ items = ("drag9.png")
/ position = (10%, 90%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag10>
/ items = ("drag10.png")
/ position = (20%, 90%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<trial mytrial>
/ stimulustimes = [1=start; 1=bluecircle; 1=drag1; 1=drag2; 1=drag3; 1=drag4; 1=drag5; 1=drag6; 1=drag7; 1=drag8; 1=drag9; 1=end; 30000 = end]
/ showmousecursor = true
/ inputdevice = dragdrop
/ correctresponse = ("drag2","drag4","drag6","drag8","drag10")
/ validresponse = ("drag2","drag4","drag6","drag8","drag10")
/ response = anyresponse
/ recorddata = true
/ responseinterrupt = frames
/ beginresponseframe = 0
</trial>

<block myblock>
/ trials=[1=mytrial]
</block>

<text end>
/ items = ("Click here to end the task.Thanks")
/ txbgcolor = black
/ txcolor = white
/ erase = false
/ vjustify = center
/ size = (24%, 6%)
/ dropsource = true
/ position = (85%, 80%)
/ select =next(end)
</text>


Please provide the files the script requires to run. Thank you.

Dave - 3/9/2020
Hidee - 3/7/2020
Hi, I am hoping someone very helpful can assist me. 
I have tried to follow a few suggested templates, still no luck. 
I have trying to create a drag and drop task however, I can not get the selection, drag then drop to happen.  I can not see the shape I have created as well. 
Can someone please highlight where I am going wrong.
Any assistance will be greatly appreciated.

<expt >

</expt>


<text Start>
/ items = ("Drag all the drink images containing alcohol")
/ txcolor = black
/ erase = false
/ hjustify = left
/ fontstyle = ("Arial", 4.63%, true, true, false, false, 5, 1)
/ position = (50%, 10%)
</text>

<shape bluecircle>
/ shape = rectangle
/ color = gold
/ position = (70%, 50%)
/ droptarget = true
/ size = (30%, 40%)
</shape>

<picture drag1>
/ items = ("drag1.png")
/ position = (10%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag2>
/ items = ("drag2.png")
/ position = (20%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag3>
/ items = ("drag3.png")
/ position = (30%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag4>
/ items = ("drag4.png")
/ position = (40%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag5>
/ items = ("drag5.png")
/ position = (10%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag6>
/ items = ("drag6.png")
/ position = (20%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag7>
/ items = ("drag7.png")
/ position = (30%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag8>
/ items = ("drag8.png")
/ position = (40%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag9>
/ items = ("drag9.png")
/ position = (10%, 90%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag10>
/ items = ("drag10.png")
/ position = (20%, 90%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<trial mytrial>
/ stimulustimes = [1=start; 1=bluecircle; 1=drag1; 1=drag2; 1=drag3; 1=drag4; 1=drag5; 1=drag6; 1=drag7; 1=drag8; 1=drag9; 1=end; 30000 = end]
/ showmousecursor = true
/ inputdevice = dragdrop
/ correctresponse = ("drag2","drag4","drag6","drag8","drag10")
/ validresponse = ("drag2","drag4","drag6","drag8","drag10")
/ response = anyresponse
/ recorddata = true
/ responseinterrupt = frames
/ beginresponseframe = 0
</trial>

<block myblock>
/ trials=[1=mytrial]
</block>

<text end>
/ items = ("Click here to end the task.Thanks")
/ txbgcolor = black
/ txcolor = white
/ erase = false
/ vjustify = center
/ size = (24%, 6%)
/ dropsource = true
/ position = (85%, 80%)
/ select =next(end)
</text>


Please provide the files the script requires to run. Thank you.

Thanks for replying. 

The script requires various images. Please provide those.
By Hidee - 3/9/2020

Attached
By Hidee - 3/9/2020

2 more 
By Dave - 3/9/2020

Hidee - 3/9/2020
2 more 


<text Start>
/ items = ("Drag all the drink images containing alcohol")
/ txcolor = black
/ erase = false
/ hjustify = left
/ fontstyle = ("Arial", 4.63%, true, true, false, false, 5, 1)
/ position = (50%, 10%)
</text>

<shape bluecircle>
/ shape = rectangle
/ color = gold
/ position = (70%, 50%)
/ droptarget = true
/ size = (30%, 40%)
</shape>

<picture drag1>
/ items = ("drag1.png")
/ position = (10%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag2>
/ items = ("drag2.png")
/ position = (20%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag3>
/ items = ("drag3.png")
/ position = (30%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag4>
/ items = ("drag4.png")
/ position = (40%, 30%)
/ dropsource = true
/ size = (20%, 20%)
</picture>

<picture drag5>
/ items = ("drag5.png")
/ position = (10%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag6>
/ items = ("drag6.png")
/ position = (20%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag7>
/ items = ("drag7.png")
/ position = (30%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag8>
/ items = ("drag8.png")
/ position = (40%, 60%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag9>
/ items = ("drag9.png")
/ position = (10%, 90%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<picture drag10>
/ items = ("drag10.png")
/ position = (20%, 90%)
/ size = (20%, 20%)
/ dropsource = true
</picture>

<trial mytrial>
/ stimulustimes = [0=start, bluecircle, drag1, drag2, drag3, drag4, drag5, drag6, drag7, drag8, drag9, end]
/ showmousecursor = true
/ validresponse = ("bluecircle", "end")
/ isvalidresponse = [
    trial.mytrial.response == "end"
]
/ inputdevice = dragdrop
/ recorddata = true
</trial>

<block myblock>
/ trials=[1=mytrial]
</block>

<text end>
/ items = ("Click here to end the task.Thanks")
/ txbgcolor = black
/ txcolor = white
/ erase = false
/ vjustify = center
/ size = (24%, 6%)
/ position = (85%, 80%)
</text>