IRobot.KeyMode
Constructor and Description |
---|
DesktopRobot(java.awt.GraphicsDevice screen) |
Modifier and Type | Method and Description |
---|---|
ScreenImage |
captureScreen(java.awt.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) |
java.lang.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, waitForIdle
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
keyPress, keyRelease, mouseMove, mousePress, mouseRelease, mouseWheel, setAutoDelay, waitForIdle
public DesktopRobot(java.awt.GraphicsDevice screen) throws java.awt.AWTException
java.awt.AWTException
public void smoothMove(Location dest)
smoothMove
in interface IRobot
public void smoothMove(Location src, Location dest, long ms)
smoothMove
in interface IRobot
public void delay(int ms)
public ScreenImage captureScreen(java.awt.Rectangle rect)
captureScreen
in interface IRobot
public void pressModifiers(int modifiers)
pressModifiers
in interface IRobot
public void releaseModifiers(int modifiers)
releaseModifiers
in interface IRobot
protected void doType(IRobot.KeyMode mode, int... keyCodes)
public void typeChar(char character, IRobot.KeyMode mode)