Two randomized stimuli as responses to be clicked


Author
Message
ldobb
ldobb
Distinguished Member (3.9K reputation)Distinguished Member (3.9K reputation)Distinguished Member (3.9K reputation)Distinguished Member (3.9K reputation)Distinguished Member (3.9K reputation)Distinguished Member (3.9K reputation)Distinguished Member (3.9K reputation)Distinguished Member (3.9K reputation)Distinguished Member (3.9K 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...




Threaded View
Threaded View
ldobb - 9 Years Ago
Dave - 9 Years Ago
ldobb - 9 Years Ago
Dave - 9 Years Ago
                     Amazing, thanks as always. Works like a charm now.
ldobb - 9 Years Ago
ldobb - 9 Years Ago
                         I should also add that if I just have the characters as responses,...
ldobb - 9 Years Ago
                             Correct. You need to apply conditional logic via the <trial>'s...
Dave - 9 Years Ago
                                 In short, you do (example uses the D and K keys on the keyboard)...
Dave - 9 Years Ago
                                     You beat me to it, I'll take a look at all of that. Thanks, Dave :)
ldobb - 9 Years Ago
                                     Hi Dave, Last question I hope! The script works perfectly. The only...
ldobb - 9 Years Ago
                                         Define a /responsemessage for "no response" that shows a blank...
Dave - 9 Years Ago
                                 Are there any other posts/documents I can look to for understanding...
ldobb - 9 Years Ago

Reading This Topic

Explore
Messages
Mentions
Search