Howdy, Stranger!

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

Supported by

[open] countdown and mouse response

edited October 2014 in OpenSesame

Hello there!

I am new in programming and in Open Sesame, so I need a little help for a task : the subject see a countdown (of 2 min) on the screen and has to response on a scale with the mouse every 20 seconds. I create the countdown with a loop and feedback, it works well (thanks to a post on this forum). But my problem is the mouse response, because the countdown shouldn't stop when the subject answer...
I'm sorry if I'm not clear, my english isn't really good, but if you have an idea how to solve my problem, I would be grateful.

Thank you,

Nabouda89.

Comments

  • edited 6:43PM

    Hi and welcome to the forum!

    This sounds like something you should be able to do using a bit of inline scripting, but will not be able to do in the GUI.

    The general approach would be to run within an inline_script item a short script that continuously updates the display (updating the timer), while also showing the input screen and collecting mouse responses. This is not overly complicated, but we will need to know a few things: What kind of scale is the response made to? How does the response screen look?

    Also, please have a look at the Documentation Page if you want to learn about inline scripting, or if you want to learn a bit of Python.

  • edited 6:43PM

    Hi!

    First, thank you for your answer. Then, this is the picture of the scale where subjects have to rate with the mouse. I know y coordinate of the scale ends, and every mouse response of the subject give me an y coordinate somewhere between the two scale ends. Maybe there is a better way to do this, but with my low level, that's the best I can do for now ;).

    image

    Of course I need to learn a lot about Python and scripting, so I will look the documentation page.

    Really thank you for your help,

    Nabouda89.

  • edited 6:43PM

    Hi Nabouda,

    Cheers, this helps to create an example! Could you be so kind as to tell me the resolution you're working on, as well as the coordinates (both x and y) of the scale ends within that resolution?

    Thanks!

Sign In or Register to comment.