Example usage for Java java.awt Robot fields, constructors, methods, implement or subclass
The text is from its open source code.
boolean | isAutoWaitForIdle |
Robot() Constructs a Robot object in the coordinate system of the primary screen. | |
Robot(GraphicsDevice screen) Creates a Robot for the given screen device. |
BufferedImage | createScreenCapture(Rectangle screenRect) Creates an image containing pixels read from the screen. |
void | delay(int ms) Sleeps for the specified time. |
int | getAutoDelay() Returns the number of milliseconds this Robot sleeps after generating an event. |
Color | getPixelColor(int x, int y) Returns the color of a pixel at the given screen coordinates. |
void | keyPress(int keycode) Presses a given key. |
void | keyRelease(int keycode) Releases a given key. |
void | mouseMove(int x, int y) Moves mouse pointer to given screen coordinates. |
void | mousePress(int buttons) Presses one or more mouse buttons. |
void | mouseRelease(int buttons) Releases one or more mouse buttons. |
void | mouseWheel(int wheelAmt) Rotates the scroll wheel on wheel-equipped mice. |
void | setAutoDelay(int ms) Sets the number of milliseconds this Robot sleeps after generating an event. |
void | setAutoWaitForIdle(boolean isOn) Sets whether this Robot automatically invokes waitForIdle after generating an event. |
String | toString() Returns a string representation of this Robot. |
void | waitForIdle() Waits until all events currently on the event queue have been processed. |