hide cursor --- not possible with builtin features of SikuliX

Asked by jacob1988 on 2017-05-01

I would like to hide cursor for few seconds?
how can I do this? :)

Question information

Language:
English Edit question
Status:
Answered
For:
Sikuli Edit question
Assignee:
No assignee Edit question
Last query:
2017-05-01
Last reply:
2017-05-02
masuo (masuo-ohara) said : #1

Which do you mean a keyboard cursor or a mouse pointer?
If you mean a keyboard cursor on input field, click window title or move focus to another object, so a keyboard cursor is disappeared.

RaiMan (raimund-hocke) said : #2

... and of course you can move the mousepointer using hover to a place, where it is out of sight.

jacob1988 (jacob1988) said : #3

mouse pointer. I have to click button "close" but sometimes mouse pointer is on button "close". so sikuli dosen't see button "close" and doesn't click.

masuo (masuo-ohara) said : #4

Generally it is not a problem of mouse pointer.
If FindFailed exception is not occured, SikuliX has found something.
In this case, you have to confirm what SikuliX find out, what SikuliX work.
Understanding the situation leads to solutions.

For example
(1)If SikuliX find what you did not expecte, try Minimum Similarity
http://sikulix-2014.readthedocs.io/en/latest/pattern.html?highlight=similarity

(2)If SikuliX find and click what you expected, try moveMouse() and mouseDown().
http://sikulix-2014.readthedocs.io/en/latest/region.html?highlight=mouseMove

RaiMan (raimund-hocke) said : #5

Generally the mousepointer is not part of the image captured to be searched.

So it does not matter, wether the mousepointer is over the searched image or not, since it is ignored anyways.

Be sure to use latest SikuliX version 1.1.1

About the other aspects: Masuo is your friend ;-)

Can you help with this problem?

Provide an answer of your own, or ask jacob1988 for more information if necessary.

To post a message you must log in.