Inheritance diagram for RobotAction:
Public Types | |
ROLL_WHEEL_DOWN | |
CreateScreenCapture | |
enum | MouseWheelDirection { ROLL_WHEEL_DOWN, value = val } |
multiply by these to set a direction | |
enum | RobotMethod { CreateScreenCapture, Delay, GetPixelColor, KPress, KRelease, KType, MMove, MPress, MRelease, MWheel, SADelay, SAWaitForIdle, command = commandString } |
Different things you can ask a robot to do. | |
Public Member Functions | |
RobotAction () | |
void | createScreenCapture (Rectangle screenRect, File destFile) |
void | delay (int ms) |
int | getNumCommands () |
void | getPixelColor (int x, int y) |
void | invoke () |
Run through our command list and invoke each command. | |
void | keyPress (int keycode) |
void | keyRelease (int keycode) |
void | keyType (int keycode) |
void | mouseMove (int x, int y) |
Queue up a mouseMove. | |
void | mousePress (int buttons) |
InputEvent.BUTTON1_MASK, InputEvent.BUTTON2_MASK, InputEvent.BUTTON3_MASK. | |
void | mouseRelease (int buttons) |
void | mouseWheel (int wheelAmt, MouseWheelDirection direction) |
void | setAutoDelay (int ms) |
void | setAutoWaitForIdle (boolean isOn) |
void | setScreenDevice (int requestedDevice) |
void | typeString (String text) |
void | waitForIdle () |
Classes | |
class | RobotCommand |
Embodies a robot method and its arguments. |
TODO: Implement higher level calls, like drag from x1,y1 to x2,y2. Which ends up being a mouse down at x1,y1, mouseMove, and mouseUp at x2,y2.
This software is distributed under the BSD License.
Definition at line 34 of file RobotAction.java.
void createScreenCapture | ( | Rectangle | screenRect, | |
File | destFile | |||
) |
void delay | ( | int | ms | ) |
int getNumCommands | ( | ) |
void getPixelColor | ( | int | x, | |
int | y | |||
) |
void invoke | ( | ) |
Run through our command list and invoke each command.
Implements R3Action.
Definition at line 163 of file RobotAction.java.
void keyPress | ( | int | keycode | ) |
keycode | e.g, KeyEvent.VK_A, or KeyEvent.VK_SHIFT |
Definition at line 229 of file RobotAction.java.
Referenced by RobotAction.keyType().
void keyRelease | ( | int | keycode | ) |
keycode |
Definition at line 236 of file RobotAction.java.
Referenced by RobotAction.keyType().
void keyType | ( | int | keycode | ) |
keycode | e.g, KeyEvent.VK_A, or KeyEvent.VK_SHIFT |
Definition at line 244 of file RobotAction.java.
References RobotAction.keyPress(), and RobotAction.keyRelease().
Referenced by RobotAction.typeString().
void mouseMove | ( | int | x, | |
int | y | |||
) |
void mousePress | ( | int | buttons | ) |
InputEvent.BUTTON1_MASK, InputEvent.BUTTON2_MASK, InputEvent.BUTTON3_MASK.
buttons |
Definition at line 264 of file RobotAction.java.
void mouseRelease | ( | int | buttons | ) |
void mouseWheel | ( | int | wheelAmt, | |
MouseWheelDirection | direction | |||
) |
void setAutoDelay | ( | int | ms | ) |
void setAutoWaitForIdle | ( | boolean | isOn | ) |
void setScreenDevice | ( | int | requestedDevice | ) |
void typeString | ( | String | text | ) |
text |
Definition at line 309 of file RobotAction.java.
References RobotAction.keyType().
Referenced by ActionChannel.typeString().