Howdy, Stranger!

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

Supported by

Touch responses wrong when cursor not showing with Xpyriment, crashes with PsychoPy

I have made an task using Xpyriment, where in each trial participants release the space bar and then touch the screen in response to the stimuli (to get two types of RT). When using Xpyriment, it works fine when the cursor shows on the screen, however, when I try to uncheck the box 'Show cursor' for the touch response item and then run the experiment, the touch screen coordinates are wrong.
I read this thread, so tried to run the experiment with PsychoPy, however now the experiment is not running properly. It crashes at the first time it tries to record a key release, when I use PsychoPy.
Does anyone know why this might be? And is there a way to have my experiment run properly without showing cursor but with the correct touch response coordinates?


  • Hi bal,

    Do you have an error message for us? Maybe you could also upload your experiment. Without having a little more detail it is hard to help you (unless of course someone run into the same issue before).


  • Hi Eduard,

    Thanks for offering to help.

    Here is a screenshot of the error message I get when I try to run it with PsychoPy. Not sure if this can tell us anything about what is going wrong?

  • Hi,

    Here a little excerpt from the documentation:

    function Mouse.get_click_release(**resp_args)
    New in v3.2.0
    Collects a mouse-click release.
    Important: This function is currently not implemented for the psycho backend.

    So, psychopy is not really an option for you. We can try to fix what is wrong with expyriment, but then again, we need more details on the issue (see above)


  • Thanks for your quick reply.
    I see, so I cannot use the key_release function with PsychoPy and I cannot use the touchscreen while hiding the cursor with Xpyriment. I would really like both of these functions in my experiment, as it is important for me to record the moment the participant releases a key as well as the correct coordinates that they touch on the screen. I need to hide the mouse because when it is not hidden it pops up on the screen and could be a distraction that could alter the RT data.
    I wonder if there is any other option in this case?
    I just thought about whether I could change the cursor to black, which would make it appear invisible in the experiment, but I just read these threads ( and it seems that it is difficult to do that.
    I have attached my experiment in case you can find any other solution by looking at it.
    Thanks again for your help!

  • Hm, that is annoying. When I try the experiment myself, I don't see the cursor. So basically, it works like it should be. Which tablet are you working with and which operating system do you use?


  • That is strange! I'm working with an ELO 2201L touchscreen monitor with Windows 7 (I think - I would need to double check the version of windows but I'm not at that computer right now).

  • edited August 2018

    Hi bal,
    I was planning something similar with touchscreen, but have not tested the mouse(visible=False) on the touchscreen yet. Lifting the hand from the touchscreen does work! :smiley:
    I'll upload part of my script. Maybe this piece of code can help you.

    By the way: If you set the cursor into the middle of your button, it should not distract very much. If you have, two buttons however... well...


  • edited August 2018

    upload did not try

  • Thanks DahmSF. However I am not very good with code so I am struggling to see which part of your code might help me. I do indeed have more than one touch screen button, which makes things difficult!

    Since Eduard was able to run the experiment without the mouse appearing on his machine, I tried to run my experiment on another touch-screen laptop (with the same screen resolution), and the mouse does not appear, but now the experiment is not presenting properly in full screen, see photo:

    I'm not having much luck with this experiment! Is there anything else I can do to get the experiment to run on my original machine (Windows PC with touchscreen monitor) without the mouse showing? Any way I can change to cursor to black or something?

Sign In or Register to comment.