Group: Forum Members
Posts: 2,
Visits: 7
|
I was wondering how to use a jpeg as an option for a multiple choice question. For example, instead of options A, B, C, etc., it would have the jpeg inserted instead. Here is what I have so far:
<radiobuttons aronscale> / caption = "What aligns the most with you?" / options = ( "A", "B", "C", "D", "E", "F", "G")
</radiobuttons>
<item picturechoice> / stimulusframes = ("P1.jpg", "P2.jpg", "P3.jpg", "P4.jpg", "P5.jpg", "P6.jpg", "P7.jpg") / stimulusframesizes = (400, 400) // Adjust the size as needed / validresponse = ("1", "2", "3", "4", "5", "6", "7") // valid response keys / response = "" / timeout = 10000 // 10 seconds timeout / stimulusdisplayduration = 0 / trialduration = 0
<stimulus> / items = [picturechoice] / onstart = [ clearkeys(), drawbitmap(picturechoice, "center", "center") ] / oninput = [ set(response, getinput()) ] / until = [response != ""] / onend = [ log(response) ]
</item>
|