IRobot.KeyMode| Constructor and Description |
|---|
DesktopRobot(GraphicsDevice screen) |
| Modifier and Type | Method and Description |
|---|---|
ScreenImage |
captureScreen(Rectangle rect) |
void |
delay(int ms) |
protected void |
doType(IRobot.KeyMode mode,
int... keyCodes) |
void |
dragDrop(Location start,
Location end,
int steps,
long ms,
int buttons) |
Object |
getDevice()
Return the underlying device object (if any).
|
void |
pressModifiers(int modifiers) |
void |
releaseModifiers(int modifiers) |
void |
smoothMove(Location dest) |
void |
smoothMove(Location src,
Location dest,
long ms) |
void |
typeChar(char character,
IRobot.KeyMode mode) |
createScreenCapture, getAutoDelay, getPixelColor, isAutoWaitForIdle, keyPress, keyRelease, mouseMove, mousePress, mouseRelease, mouseWheel, setAutoDelay, setAutoWaitForIdle, toString, waitForIdleclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitkeyPress, keyRelease, mouseMove, mousePress, mouseRelease, mouseWheel, setAutoDelay, waitForIdlepublic DesktopRobot(GraphicsDevice screen) throws AWTException
AWTExceptionpublic void smoothMove(Location dest)
smoothMove in interface IRobotpublic void smoothMove(Location src, Location dest, long ms)
smoothMove in interface IRobotpublic void delay(int ms)
public ScreenImage captureScreen(Rectangle rect)
captureScreen in interface IRobotpublic void pressModifiers(int modifiers)
pressModifiers in interface IRobotpublic void releaseModifiers(int modifiers)
releaseModifiers in interface IRobotprotected void doType(IRobot.KeyMode mode, int... keyCodes)
public void typeChar(char character,
IRobot.KeyMode mode)