Method Summary |
|
public synchronized BufferedImage | createScreenCapture(Rectangle screenRect) Creates an image containing pixels read from the screen. |
public synchronized void | delay(int ms) Sleeps for the specified time. |
public synchronized int | getAutoDelay() Returns the number of milliseconds this Robot sleeps after generating an event. |
public synchronized Color | getPixelColor(int x, int y) Returns the color of a pixel at the given screen coordinates. |
public synchronized boolean | isAutoWaitForIdle() Returns whether this Robot automatically invokes waitForIdle
after generating an event. |
public synchronized void | keyPress(int keycode) Presses a given key. |
public synchronized void | keyRelease(int keycode) Releases a given key.
Key codes that have more than one physical key associated with them
(e.g. |
public synchronized void | mouseMove(int x, int y) Moves mouse pointer to given screen coordinates. |
public synchronized void | mousePress(int buttons) Presses one or more mouse buttons. |
public synchronized void | mouseRelease(int buttons) Releases one or more mouse buttons. |
public synchronized void | mouseWheel(int wheelAmt) Rotates the scroll wheel on wheel-equipped mice. |
public synchronized void | setAutoDelay(int ms) Sets the number of milliseconds this Robot sleeps after generating an event. |
public synchronized void | setAutoWaitForIdle(boolean isOn) Sets whether this Robot automatically invokes waitForIdle
after generating an event. |
public synchronized String | toString() Returns a string representation of this Robot. |
public synchronized void | waitForIdle() Waits until all events currently on the event queue have been processed. |