sikuli-driver team mailing list archive
-
sikuli-driver team
-
Mailing list archive
-
Message #29272
[Question #257380]: mouse.click not going to the right place
New question #257380 on Sikuli:
https://answers.launchpad.net/sikuli/+question/257380
browse(new URL("http://ormlsyap37/#/home"));
ScreenRegion s = new DesktopScreenRegion();
Target imageTarget = new ImageTarget(new File(".\\images\\1415707262441.png"));
imageTarget.setMinScore(0.4);
ScreenRegion foundRegion = s.find(imageTarget);
mouse.click(foundRegion.getRelativeScreenLocation(0, 0));
foundRegion.getCenter();
System.out.println(foundRegion);
System.out.println(foundRegion.getRelativeScreenLocation(0, 0));
System.out.println("mouse location " + MouseInfo.getPointerInfo().getLocation());
###RESULTS
DefaultScreenRegion{screen=org.sikuli.api.robot.desktop.DesktopScreen@10375b3, x=536, y=539, width=80, height=46, score=0.4024948477745056}
(536,539)
mouse location java.awt.Point[x=0,y=539]
It doesn't seem to be moving across on the x axis.
--
You received this question notification because you are a member of
Sikuli Drivers, which is an answer contact for Sikuli.