Faster mouse movement --- use Settings.MoveMouseDelay()

Asked by Shimizoki

I have created a script that will click on an image when it appears in a region (rather basic beginner script).

However I have noticed the mouse moves painfully slow and in fact I can complete the task faster than Sikuli can. Is there a way to either have it immediately click on the image, or at least have the mouse move faster from where its located to where the image is.

Any help would be appreciated, thank you.

Question information

Language:
English Edit question
Status:
Solved
For:
SikuliX Edit question
Assignee:
No assignee Edit question
Solved by:
Shimizoki
Solved:
Last query:
Last reply:
Revision history for this message
Shimizoki (shimizoki) said :
#1

Of course as soon as I ask that question I find the answer...

Settings.MoveMouseDelay = 0

lower number is faster movement.

Revision history for this message
Shimizoki (shimizoki) said :
#2

Sorry for the useless question.

Revision history for this message
RaiMan (raimund-hocke) said :
#3

No, not a useless question.

Might help other users and proves that docs help ;-)

Have fun with Sikuli.

Revision history for this message
Alex Lunyov (lunyov-av) said :
#4

Thanks, you help me, for example! RaiMan was right.