Howdy, Stranger!

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

Supported by

hiding mouse cursor and logging keyboard responses

Hi everyone,
I just started using opensesame and now I have a few problems that I couldn't find a solution from Internet search.

The biggest problem is that the mouse cursor is visible during all the experiment. I have a sequence beginning with sketchpads and ends with a rating. In the first trial I don't see the cursor until rating screen which is I want it to be. However, after the first rating with mouse, the cursor doesn't disappear but stay on the screen for the following trials. I tried adding "mouse.show_cursor False" or "set show_cursor no" in the rating script or in the fixation screen script. None of these worked.

Another issue is that I'm collecting keyboard response but the responses are not saved in the log file. I tried to define a variable by writing "var=NUMBER_RESPONSE" next to "set allowed_responses "z;c"" but the script didn't allow me to do that.

Last and relatively a minor problem is that I cannot choose a box as response for rating unless I specifically click on the top part of the boxes. That is, lower part inside of the boxes in rating screen is not working.

Thank you in advance!
Irem

Comments

  • Hi Irem,

    Hide cursor: I had the same thing once. You may look into my old forum discussions.
    The solution. An inline_script with this text.
    mouse().show_cursor(False)
    Just put it at the position where you want the cursor to disappear.

    I did not understand your keyboard response problem. Do you have a logger item?
    You may use an inline_script to define new variables.

    Cheers
    Stephan

  • Thank you Stephan! Adding inline script with that text solved the problem for mouse cursor.

    I solved the keyboard response problem. However, another problem emerged now. What I'm trying to do is to collect responses within 2000ms but I don't want the screen to disappear after the response. I want the image to stay 2000ms even if a keyboard response was made. Setting both timeout and duration to 2000ms does not help and I couldn't define a subtraction like "2000-[response_time]" for duration of a following sketchpad item. As a very ineffective solution, I added multiple sketchpads after keyboard response item with varying durations and set those sketchpads' Run-If to [response_time] < X. Nevertheless, this does not guarantee 2000ms precision.

    Best,
    Irem

  • Yes. Thank you!

Sign In or Register to comment.