Millisecond Forums

Creating Buttons in Mouse Mode

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

By ilanagratch - 12/11/2017

Hi,
Can you please provide instructions around creating buttons for an IAT when the response mode is mouse rather than keyboard?
Thank you,
Ilana
By Dave - 12/11/2017

ilanagratch - Monday, December 11, 2017
Hi,
Can you please provide instructions around creating buttons for an IAT when the response mode is mouse rather than keyboard?
Thank you,
Ilana

Define two <text> elements to serve as your "buttons", /size and /position them according to your needs, display them via the <trial> elements' /stimulusframes along with the other stimuli and define them as the respective trials' /valid- and /correcresponses.

Like so:
<trial attributeA>
/ validresponse = (E, I)
/ correctresponse = (E)
/ inputdevice = mouse
/ stimulusframes = [1 = attributeA, errorReminder, e, i]
/ posttrialpause = parameters.ISI
</trial>

<trial attributeB>
/ validresponse = (E, I)
/ correctresponse = (I)
/ inputdevice = mouse
/ stimulusframes = [1 = attributeB, errorReminder, e, i]
/ posttrialpause = parameters.ISI
</trial>


<text E>
/ items = ("E")
/ size = (10%, 5%)
/ position = (30%, 80%)
/ txcolor = white
/ txbgcolor = blue
/ hjustify = center
/ vjustify = center
</text>

<text I>
/ items = ("I")
/ size = (10%, 5%)
/ position = (70%, 80%)
/ txcolor = white
/ txbgcolor = blue
/ hjustify = center
/ vjustify = center
</text>

By ilanagratch - 12/11/2017

Dave - Monday, December 11, 2017
ilanagratch - Monday, December 11, 2017
Hi,
Can you please provide instructions around creating buttons for an IAT when the response mode is mouse rather than keyboard?
Thank you,
Ilana

Define two <text> elements to serve as your "buttons", /size and /position them according to your needs, display them via the <trial> elements' /stimulusframes along with the other stimuli and define them as the respective trials' /valid- and /correcresponses.

Like so:
<trial attributeA>
/ validresponse = (E, I)
/ correctresponse = (E)
/ inputdevice = mouse
/ stimulusframes = [1 = attributeA, errorReminder, e, i]
/ posttrialpause = parameters.ISI
</trial>

<trial attributeB>
/ validresponse = (E, I)
/ correctresponse = (I)
/ inputdevice = mouse
/ stimulusframes = [1 = attributeB, errorReminder, e, i]
/ posttrialpause = parameters.ISI
</trial>


<text E>
/ items = ("E")
/ size = (10%, 5%)
/ position = (30%, 80%)
/ txcolor = white
/ txbgcolor = blue
/ hjustify = center
/ vjustify = center
</text>

<text I>
/ items = ("I")
/ size = (10%, 5%)
/ position = (70%, 80%)
/ txcolor = white
/ txbgcolor = blue
/ hjustify = center
/ vjustify = center
</text>


Thanks so much, Dave!