Advertisement
Guest User

Untitled

a guest
Sep 29th, 2016
58
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.29 KB | None | 0 0
  1. robot = new Robot(GraphicsEnvironment.getLocalGraphicsEnvironment().getDefaultScreenDevice());
  2. System.out.println(robot.getPixelColor(
  3. (int) MouseInfo.getPointerInfo().getLocation().getX() + 10,
  4. (int) MouseInfo.getPointerInfo().getLocation().getY() + 10
  5. ));
  6.  
  7. java.awt.Color[r=0,g=0,b=0]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement