one click with my_mouse.get_click(), but return more than one values of button, position, timestamp
I used the function get_click() to get mouse click:
button, position, timestamp = my_mouse.get_click(buttonlist=[1], visible = True)
However, I will get several return values for that position instead of one, even if I click once. What should I do with this? Thanks for any help!
Comments
Hi @Ornella ,
This is a screenshot from the debug window, right?
The [22, 52] is not actually output from the get_click function but some artifact from internal processes in Opensesame. It is on the radar, but at the moment there is no way of getting rid of this. In any case, it does not interfere with the mouse function, so if you log the click, the logger will only show one, the correct, position.
Hope this helps,
Eduard
Hi @eduard,
Thanks for your reply! This is the console window during the run. But I am not referring to [22,52], the problem is the repetitiveness of the pos:(-58,0,-94,0), which I printed out. You can see the pos:(-58,0,-94,0) appears three times. And the logger records the results of these repetitions three times, whereas I only clicked once.
Looking forward to your reply!
Ornella
Hi Ornella,
Can you share your experiment then? I need more info to be able to answer that.
Thanks,
Eduard