Howdy, Stranger!

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

Supported by

Go No-go respond moving the mouse


I creating a Go No-go task in which the participants see (Go stimuli) an arrow pointing left or right or (No-go stimuli) a blue arrow and have to respond by moving the mouse to the left or the right for a precise length from a starting point until it reaches a threshold (another physical point on the table where the mouse is): if they don't move the mouse far enough to reach the threshold it is not considered a correct_response but an "attempts".

I'm now using the mousetrap plugin.

The questions are:
1. How is it possible to consider as correct_response only the movement of the mouse that reaches the threshold?
2. Is it possible to measure the movements that do not reach the threshold? These are important for the purpose of the experiment because they are considered as "attempts". If a better way to measure them has already been found please tell!
3. If the participant does not move the mouse at all, it is a correct_response for the No-go stimulus, but an error if the Go stimulus is present.

Thank you for your help,



  • Hi Tommaso,

    maybe first a general comment: if participants should move the mouse for a prespecified physical distance on the table, I don't know of a way that would exactly implement this procedure in OpenSesame.

    The easiest implementation I could think of that would come somewhat close is the following: define a screen with a start button participants need to click on. Afterwards, reset the mouse cursor to the center of the mouse button. Then, define two buttons that cover the complete area either x pixel to the left or x pixel to the right of the start button. This x pixel distance should be set so that if you move the mouse across the desired physical distance on the table, these amounts of pixel are traveled by the cursor on the screen (for this, I would probably reduce the cursor speed and disable acceleration in the system settings - this has to be done outside of OpenSesame). I have implemented a sketch of such an experiment and attached it to my post.

    In order to only consider movements above the threshold, you will probably want to specify a timeout until participants must cover the distance (timeout is 2000ms in the example experiment). If participants do not reach one of the button areas in time their response is recorded as None. I included a script that would set a new variable current_response that contains the response ("left"/"right") or is set to "timeout" if no area is reached (this is easier to work with than None in Python, as None is handled differently than a simple character).

    Hope this is a good starting point for your experiment.



Sign In or Register to comment.