sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #51742
Re: [Question #680905]: java not able to use mouseMove function.
Question #680905 on Sikuli changed:
https://answers.launchpad.net/sikuli/+question/680905
Status: Open => Answered
masuo proposed the following answer:
Read document.
https://sikulix-2014.readthedocs.io/en/latest/region.html?highlight=mouseMove#Region.mouseMove
usage:mouseMove(xoff, yoff)
explanation:Move the mouse pointer from it’s current position to the position given by the offset values
usage:mouseMove(PSRML)
explanation:PSMRL – a pattern, a string, a match, a region or a location that evaluates to a click point.
And try this codes.
mouseMove("C:\\ptest.png");
or
int x = s.find("C:\\ptest.png").getX();
int y = s.find("C:\\ptest.png").getY();
s.mouseMove(Location(x,y));
--
You received this question notification because your team Sikuli Drivers
is an answer contact for Sikuli.