sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #55522
Re: [Question #692019]: [request] Randomized mouse route from A to B?
Question #692019 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/692019
Status: Open => Answered
RaiMan proposed the following answer:
--- randomization of wait times
use the random features
--- mouse movement
use mouseMoveRandom()
eventually you have to create an appropriate region before like so:
match = find(someImage)
target = match.getCenter().grow(5)
which would randomize the move target within 5 pixels around
--- random clicking
I guess you are talking about click(someImage) and similar which combine an image search, a mousemove and a click.
You have to create your own random click, hover, ... and use it in the
script
def myClick(someImageOrPattern):
match = find(someImageOrPattern)
target = match.getCenter().grow(5)
mouseMoveRandom(target, 50, 50)
click(Mouse.at())
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.