Command: ROBOT

USAGE /robot click <x> <y>
/robot type [<strings>]+ (emacs-like syntax: C-x2 M-TAB RET...)
/robot getcolor <x> <y> [<var>]
/robot getscreen <x> <y> <w> <h> [<var>]
/robot waitscreen <x> <y> <w> <h> <hash> <timeout (ms)>
DESCRIPTION Include java.awt.Robot class functionality.
This class is used to generate native system input events for the purposes of test automation, self-running demos, and other applications where control of the mouse and keyboard is needed. The primary purpose of Robot is to facilitate automated testing of Java platform implementations.
Using the class to generate input events differs from posting events to the AWT event queue or AWT components in that the events are generated in the platform's native input queue. For example, Robot.mouseMove will actually move the mouse cursor instead of just generating mouse move events.
Note that some platforms require special privileges or extensions to access low-level input control. If the current platform configuration does not allow input control, an AWTException will be thrown when trying to construct Robot objects. For example, X-Window systems will throw the exception if the XTEST 2.2 standard extension is not supported (or not enabled) by the X server.
PARAMETER
NameDescriptionRequired
click <x> <y> click simulate a single mouse click at the given x-y-position. Yes
type [<strings>]+ type keys. Possible keynames are all number and digits, special characters and predefined:
"RET", "ESC", "SPC", "TAB", "DEL", "LEFT", "RIGHT", "DOWN", "UP", "F1", "F2", "F3", "F4", "F5", "F6", "F7", "F8", "F9", "F10", "F11", "F12"
You may use the following modifiers:
"S-" --> shift
"A-" --> alt
"M-" --> alt
"C-" --> cntrl
Yes
getcolor <x> <y> [<var>] getcolor read the pixel color at the given x-y-position. If "var" was specified save the color-value in the given variable otherwise print out. Yes
getscreen <x> <y> <w> <h> [<var>] getscreen get screen hash. Compute CCITT-CRC for RGB values of specified screen rectangle. If "var" was specified save the value in the given variable otherwise print out. Yes
waitscreen <x> <y> <w> <h> <hash> <timeout (ms)> waitscreen wait (poll 1/10 sec) for specified screen hash (HEX-chars) at the specified screen rectangle. Wait time is given timeout (default 100 ms). Yes
CONDITIONS None.