Package org.sikuli.api

Examples of org.sikuli.api.DefaultScreenLocation


  public static ScreenLocation getCurrentMouseScreenLocation(){   
    Point p = MouseInfo.getPointerInfo().getLocation();   
    Screen screen = getCurrentScreenDevice().screen;
    Rectangle bounds = getCurrentScreenDevice().getBounds();
    ScreenLocation screenLocation = new DefaultScreenLocation(screen, p.x - bounds.x, p.y - bounds.y);
    screenLocation.setScreen(screen);
    return screenLocation;
  }
View Full Code Here

TOP

Related Classes of org.sikuli.api.DefaultScreenLocation

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.