Howdy, Stranger!

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

Supported by

fixing mouse cursor to 0;0

Hi All,

I will re running an experiment which will be collecting mouse-click reposnses. I need for the mouse cursos to relocate at 0;0 at each trial, but how the mouse-click response is set, the mouse cursos is simply in the place where the participant left it.

I have installed the mousetrap extension, and this is fairly straightforward to set up with this feature. But I am a Mac user and I have been having some problems with this feature in the past. However, the experiment will be run online so this is not really the main issue. The issue is that the mousetrap extension is not supported by the web version.

So my question is, how can I set the mouse cursor at 0;0 for every trial for an experiment whose data will be collected online through JATOS?

Thanks!

Marta

Comments

  • Hi Marta, this is not a JATOS issue actually (remember that JATOS is only the server-side, so it only has to do with how data are sent and stored in the server, and how assets are requested). If you're working on OpenSesame, you should post it in their forum (or maybe the mousetrap forum?), not this one. I'll move your message over there.

    Best

    Elisa

  • Hei elisa,

    Sorry, it must have been posted in the JATOS section because I posted here last time. Thank you for moving the message.

    Marta

  • Hi Marta,

    as you correctly pointed out, mousetrap is unfortunately not available when running online experiments in OpenSesame via OSWeb, so you would have to find a JavaScript based solution for this I think. I moved your question to the OSWeb category, as I have little experience with OSWeb.

    Best,

    Pascal

  • Hi Pascal,

    Thank you.

    I have now updated it to the latest version, but I am still getting errors locally, so i probably haven't set it up right among other things.

    But if you say that it does not work on OSWeb anyway, I should just try and find a solution elsewhere. This is useful information.

    Marta

  • Hi Marta,

    I am also happy to look into the installation errors of the mousetrap plugin if you want to share them here (+ it would be great if you could specify your operating system and OpenSesame version when doing so). However, the mousetrap plugin currently is not available for OSWeb.

    Best,

    Pascal

  • Hi Pascal,

    Sure. Thanks you very much. So, the error message is

    • item-stack: experiment[run].comprehension_loop[run].comprehension_sequence[prepare].new_mousetrap_response[prepare]
    • exception type: KeyError
    • exception message: u'x=-320 y=-160 z_index=0'

    And this happens regardless of how I name my keys.

    • exception message: u'x=-320 y=-160 name="Left"\n'

    My OS is 10.14.6, and the OpenSesame version is 3.2.8.


    I dug a bit deeper into the non-functionality of the mousetrap on the web and I talked to a web developer, and basically why a mousetrap feature could never work on the web is because there is no way that a webpage can take control over the mouse of the computer, and this is why there is no JavaScript that could potentially fix this.

    But I have found a workaround if anyone is interested. What I need is not a mouse4 tracker but simply to have the mouse cursor equally distant from two images. So, I have made a sketchpad at the beginning of each trial on which the participants will have to click in order to procede with the task. I still have no control over the cursor and the participants are free to move it around, but I presume that for the majority of participants the cursor will stay where my "next" button was, and thus equally distant from my two target images.

    Marta

Sign In or Register to comment.