sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #28498
Re: [Question #255049]: Simple mouse movement
Question #255049 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/255049
Status: Open => Answered
RaiMan proposed the following answer:
the easiest is this (supposing the mouse should be moved from the
current location to a target:
1.0.1:
hover(env.getMouseLocation.right(200))
1.1.0:
hover(Mouse.at().right(200))
I just checked the API:
I will add a
mouseMove(xoff, yoff) that simply moves the mouse from the current location to the location given by the offset.
with that you might easily move the mouse along a prepared offset list or could be used in a function, that on the fly calculates the next point:
def moveCircle(radius):
while True:
# calculate next offset
mouseMove(xoff, yoff)
if finished: # check somehow, wether we are back at the beginning
break
(will be available in the nightly build tomorrow)
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.