Package org.sikuli.script

Examples of org.sikuli.script.Finder.find()


   */
  private Point findClickPoint(String imageName) throws IOException {
    Point point = null;
    String actualImageName = imageResolver.getImagePath(imageName);
    Finder finder = getCurrentScreenFinder(device);
    finder.find(actualImageName, 0.7);
    if (finder.hasNext()) {
      Match match = finder.next();
      point = new Point(match.x + (match.w / 2), match.y + (match.h / 2));
    }
    return point;
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.