Java java.awt Robot fields, constructors, methods, implement or subclass

Example usage for Java java.awt Robot fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for java.awt Robot.

The text is from its open source code.

Field

Constructor

Robot()
Constructs a Robot object in the coordinate system of the primary screen.
Robot(GraphicsDevice screen)
Creates a Robot for the given screen device.

Method

BufferedImagecreateScreenCapture(Rectangle screenRect)
Creates an image containing pixels read from the screen.
voiddelay(int ms)
Sleeps for the specified time.
intgetAutoDelay()
Returns the number of milliseconds this Robot sleeps after generating an event.
ColorgetPixelColor(int x, int y)
Returns the color of a pixel at the given screen coordinates.
voidkeyPress(int keycode)
Presses a given key.
voidkeyRelease(int keycode)
Releases a given key.
voidmouseMove(int x, int y)
Moves mouse pointer to given screen coordinates.
voidmousePress(int buttons)
Presses one or more mouse buttons.
voidmouseRelease(int buttons)
Releases one or more mouse buttons.
voidmouseWheel(int wheelAmt)
Rotates the scroll wheel on wheel-equipped mice.
voidsetAutoDelay(int ms)
Sets the number of milliseconds this Robot sleeps after generating an event.
voidsetAutoWaitForIdle(boolean isOn)
Sets whether this Robot automatically invokes waitForIdle after generating an event.
StringtoString()
Returns a string representation of this Robot.
voidwaitForIdle()
Waits until all events currently on the event queue have been processed.