Modify variables with one button, use second button to record response
Hello,
I am new to OpenSesame, and I am struggling a little bit to build the test I am trying to perform. Could you please point me to the right direction?
I wish to make a comparison test between device A and device B. At each trial, I wish that a variable A begins at a random value (e.g. from 1 to 5), and a variable B begins at a fixed value.
Each variable should have buttons on the screen to increment or decrement its value. The user can change the values of A and B as many times as they want.
Once a value for A and B is set, I wish to press on a third button to record the answer and repeat this with a different value of A.
I think this can be done with a mouse response and an inline script. But I do not see a similar example in the documentation, and now I wonder if this can actually be done...
Comments
Hi Angie,
You are right, with a mouse item, some form widgets and an inline_script you can definitely do this. It is somewhat different, but you can checkout https://forum.cogsci.nl/discussion/5839/click-on-words-and-display-meaning#latest discussion. It is a little complex, but it essentially has a number of buttons in a form that will stuff happen in the experiment. What you should pay attention to is how the calling of the forms is embedded in while loops. A similar approach will also work with your buttons. I suggest you try giving it a go and set up some basic structure. If you get stuck in the process, come back to the forum.
Does that make sense?
Eduard
I'll try and let you know, Thanks!
That worked! thank you very much!