Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Supported by

[open] Set Button Widget response?

edited September 2014 in OpenSesame

Hello,

Is it possible to set the button widget response to anything other than "yes" for "clicked," and "no" for "not clicked"? For example, in the code below, it would be awesome to get it to recognize the var as correct or not, as defined in the preceding loop. Similar to how a sketchpad can accept several keyboard responses and log whether or not the participant pressed the correct key.

set margins "50;50;50;50"
set rows "1;5;1"
set spacing "25"
set cols "1;1;1;1;1;1"
widget 2 0 2 1 label text="Text"
widget 1 1 4 1 image path="[Pic].jpg"
widget 0 2 1 1 button center="yes" text="Text1" frame="yes" var="choice1_resp"
widget 1 2 1 1 button center="yes" text="Text2" frame="yes" var="choice2_resp"
widget 2 2 1 1 button center="yes" text="Text3" frame="yes" var="choice3_resp"
widget 3 2 1 1 button center="yes" text="Text4" frame="yes" var="choice4_resp"
widget 4 2 1 1 button center="yes" text="Text5" frame="yes" var="choice5_resp"
widget 5 2 1 1 button center="yes" text="Text6" frame="yes" var="choice6_resp"

Thanks in advance for the help!

Comments

Sign In or Register to comment.