IRobot.KeyMode
Constructor and Description |
---|
RobotDesktop(Screen screen) |
Modifier and Type | Method and Description |
---|---|
ScreenImage |
captureScreen(Rectangle rect) |
void |
cleanup() |
void |
delay(int ms) |
Color |
getColorAt(int x,
int y) |
Screen |
getScreen()
Return the underlying device object (if any).
|
void |
keyDown(int code) |
void |
keyDown(String keys) |
void |
keyUp() |
void |
keyUp(int code) |
void |
keyUp(String keys) |
void |
mouseDown(int buttons) |
void |
mouseUp(int buttons) |
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
mouseMove, mouseWheel, setAutoDelay, waitForIdle
public RobotDesktop(Screen screen) throws AWTException
AWTException
public Screen getScreen()
IRobot
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(Rectangle rect)
captureScreen
in interface IRobot
public Color getColorAt(int x, int y)
getColorAt
in interface IRobot
public void pressModifiers(int modifiers)
pressModifiers
in interface IRobot
public void releaseModifiers(int modifiers)
releaseModifiers
in interface IRobot
public void typeChar(char character, IRobot.KeyMode mode)