Millisecond Forums

place stimulus at preferred location

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

By nakayama - 12/18/2019

HI, Dave
I am designed a task in which after the presentation of  the fixation cross, the stimulus picture is attached to the mouse icon (moving mouse could move the picture) and that picture could be placed at preferred location by clicking that location.
Does Inquisit support that kind of programming?
Thank you for your attention;)
Best,
By Dave - 12/19/2019

nakayama - 12/19/2019
HI, Dave
I am designed a task in which after the presentation of  the fixation cross, the stimulus picture is attached to the mouse icon (moving mouse could move the picture) and that picture could be placed at preferred location by clicking that location.
Does Inquisit support that kind of programming?
Thank you for your attention;)
Best,

Yes. You can refer to https://www.millisecond.com/download/library/spatialdelayedresponsetask/ or https://www.millisecond.com/download/library/toweroflondon/ as examples.

A simple example using the built-in drag & drop mechanics would look like this:

<text start>
/ items = ("+")
/ fontstyle = ("MS UI Gothic", 5.00%, false, false, false, false, 5, 1)
/ erase = true(white)
/ txbgcolor = grey
/ position = (50, 50)
</text>

<picture stimulus>
/items=("1.png")
/ dropsource = true
/ size = (10%, 10%)
</picture>

<trial start>
/ ontrialbegin = [
picture.stimulus.hposition = 50%;
picture.stimulus.vposition = 50%;
]
/ stimulustimes = [0=start;1000=screen, stimulus, end]
/ inputdevice = dragdrop
/ validresponse = (end)
</trial>

<shape screen>
/ color = grey
/ size = (100%, 100%)
/ position = (50%, 50%)
/ droptarget = true
/ erase = false
/ dropposition = (anywhere, anywhere)
</shape>

<text end>
/ items = ("DONE")
/ size = (8%, 4%)
/ txbgcolor = white
/ vjustify = center
/ position = (50%, 95%)
</text>

<block myblock>
/ trials = [1-20=start]
/ screencolor = grey
</block>



By nakayama - 12/19/2019

Dave - 12/19/2019
nakayama - 12/19/2019
HI, Dave
I am designed a task in which after the presentation of  the fixation cross, the stimulus picture is attached to the mouse icon (moving mouse could move the picture) and that picture could be placed at preferred location by clicking that location.
Does Inquisit support that kind of programming?
Thank you for your attention;)
Best,

Yes. You can refer to https://www.millisecond.com/download/library/spatialdelayedresponsetask/ or https://www.millisecond.com/download/library/toweroflondon/ as examples.

A simple example using the built-in drag & drop mechanics would look like this:

<text start>
/ items = ("+")
/ fontstyle = ("MS UI Gothic", 5.00%, false, false, false, false, 5, 1)
/ erase = true(white)
/ txbgcolor = grey
/ position = (50, 50)
</text>

<picture stimulus>
/items=("1.png")
/ dropsource = true
/ size = (10%, 10%)
</picture>

<trial start>
/ ontrialbegin = [
picture.stimulus.hposition = 50%;
picture.stimulus.vposition = 50%;
]
/ stimulustimes = [0=start;1000=screen, stimulus, end]
/ inputdevice = dragdrop
/ validresponse = (end)
</trial>

<shape screen>
/ color = grey
/ size = (100%, 100%)
/ position = (50%, 50%)
/ droptarget = true
/ erase = false
/ dropposition = (anywhere, anywhere)
</shape>

<text end>
/ items = ("DONE")
/ size = (8%, 4%)
/ txbgcolor = white
/ vjustify = center
/ position = (50%, 95%)
</text>

<block myblock>
/ trials = [1-20=start]
/ screencolor = grey
</block>




:) Thank you for your advice.