Package org.sikuli.api

Examples of org.sikuli.api.StyledRectangleTarget


    }
    canvas.display(5);
       
    // find all styled rectangles (e.g., buttons) ordered from left to right
 
    target = new StyledRectangleTarget(Images.ButtonOptions);
    target.setOrdering(Target.Ordering.LEFT_RIGHT);
   
    rs = s.findAll(target);
   
    canvas.clear().addLabel(Relative.to(s).topLeft().getScreenLocation(), "Rectangles found in left-right ordering");
View Full Code Here


    ImageExplainer.getExplainer(VisualModelFinder.class).setLevel(Level.STEP);
   
    Rectangle b = simulator.getBounds();
    ScreenRegion s = new DesktopScreenRegion(b.x,b.y,b.width,b.height);

    StyledRectangleTarget target = new StyledRectangleTarget(Images.CalculatorButton);
//    Target target = new StyledRectangleTarget(new URL("file:wally.png"));
//    Target target = new ImageTarget(Images.CalculatorButton);
    target.setLimit(20);
   
    List<ScreenRegion> rs = s.findAll(target);
   
       
    for (ScreenRegion r : rs){
View Full Code Here

TOP

Related Classes of org.sikuli.api.StyledRectangleTarget

Copyright © 2018 www.massapicom. 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.