Two randomized stimuli as responses to be clicked


Author
Message
ldobb
ldobb
Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)
Group: Forum Members
Posts: 36, Visits: 146
Thanks, Dave! Looks great.
I just tested it, though, and it looks like sometimes when I click on the text, the red text appears on the OTHER side of the screen. Looks like it's only the text "Alcoholic beverage", so it must have to do with the alc_categories2_clicked, right? Any idea what might be happening?
Dave
Dave
Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)Supreme Being (1M reputation)
Group: Administrators
Posts: 13K, Visits: 109K
If you want the <trial> to do something (show some sort of message upon response), you need to specify /responsemessage attributes in it.

<block alcohol>
/ trials = [1-10 = alcohol]
</block>

<picture alcohol>
/ items = ("1L_1.jpg","1L_2.jpg","1L_3.jpg","1L_4.jpg","1L_5.jpg","1L_6.jpg","1L_7.jpg","1L_8.jpg","1L_9.jpg","1L_10.jpg")
/ select = replacenorepeat
/ size = (80%, 80%)
</picture>

<trial alcohol>
/ stimulusframes = [1=alcohol, alc_categories1, alc_categories2]
/ showmousecursor = true
/ inputdevice = mouse
/ validresponse = (alc_categories1, alc_categories2)
/ responsemessage = (alc_categories1, alc_categories1_clicked, 500)
/ responsemessage = (alc_categories2, alc_categories2_clicked, 500)
</trial>

<text alc_categories1>
/ items = ("Non-alcoholic beverage","Food","Non-food object")
/ select = replace
/ vposition = 50%
/ hposition = counter.type1pos.selectedvalue
/ txcolor = black
</text>

<text alc_categories2>
/ items = ("Alcoholic beverage")
/ vposition = 50%
/ hposition = counter.type2pos.selectedvalue
/ txcolor = black
</text>

<text alc_categories1_clicked>
/ items = ("Non-alcoholic beverage","Food","Non-food object")
/ select = text.alc_categories1.currentindex
/ vposition = 50%
/ hposition = text.alc_categories1.hposition
/ txcolor = red
</text>

<text alc_categories2_clicked>
/ items = ("Alcoholic beverage")
/ vposition = 50%
/ hposition = text.alc_categories2.hposition
/ txcolor = red
</text>

<counter type1pos>
/ items = (20%,80%)
/ select = noreplace
</counter>

<counter type2pos>
/ items = (20%,80%)
/ not = (type1pos)
/ select = noreplace
/ selectionrate = always
</counter>

ldobb
ldobb
Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)Distinguished Member (4K reputation)
Group: Forum Members
Posts: 36, Visits: 146
Hi again,
I have a general strategy question. 
I'd like to show an image from a randomized set and have two options of words/phrases to click on, where the positioning will also be randomized. I've tried a number of different approaches and have come up short. I have managed to show the image and have randomized positioning of the stimuli (thanks to an earlier forum post), but it's unclear to me what the best method is for actually click on the words so that participants KNOW they've selected it. Ideally, the textcolor would change (I tried the code in the forum post http://www.millisecond.com/forums/Topic17402.aspx but it didn't seem to work for me). I couldn't figure out how to do it as a radiobutton, for instance. The way the code is now, the image appears with the two words, and then nothing really seems to happen if I click. Here is the code:

<block alcohol>
/ trials = [1-10 = alcohol]
</block>

<picture alcohol>
/ items = ("1L_1.jpg","1L_2.jpg","1L_3.jpg","1L_4.jpg","1L_5.jpg","1L_6.jpg","1L_7.jpg","1L_8.jpg","1L_9.jpg","1L_10.jpg")
/ select = replacenorepeat
/ size = (80%, 80%)
</picture>

<trial alcohol>
/ stimulusframes = [1=alcohol, alc_categories1, alc_categories2]
/ showmousecursor = true
/ validresponse = (alc_categories1, alc_categories2)
</trial>

<text alc_categories1>
/ items = ("Non-alcoholic beverage","Food","Non-food object")
/ select = replace
/ vposition = 50%
/ hposition = counter.type1pos.selectedvalue
/ txcolor = black
</text>

<text alc_categories2>
/ items = ("Alcoholic beverage")
/ vposition = 50%
/ hposition = counter.type2pos.selectedvalue
/ txcolor = black
</text>

<counter type1pos>
/ items = (20%,80%)
/ select = noreplace
</counter>

<counter type2pos>
/ items = (20%,80%)
/ not = (type1pos)
/ select = noreplace
/ selectionrate = always
</counter>

Any feedback is greatly appreciated - especially if there's a better/more efficient way to do it!
GO

Merge Selected

Merge into selected topic...



Merge into merge target...



Merge into a specific topic ID...




Reading This Topic

Explore
Messages
Mentions
Search