org.sikuli.script
Class DesktopRobot
java.lang.Object
java.awt.Robot
org.sikuli.script.DesktopRobot
- All Implemented Interfaces:
- IRobot
public class DesktopRobot
- extends Robot
- implements IRobot
Methods inherited from class java.awt.Robot |
createScreenCapture, getAutoDelay, getPixelColor, isAutoWaitForIdle, keyPress, keyRelease, mouseMove, mousePress, mouseRelease, mouseWheel, setAutoDelay, setAutoWaitForIdle, toString, waitForIdle |
DesktopRobot
public DesktopRobot(GraphicsDevice screen)
throws AWTException
- Throws:
AWTException
smoothMove
public void smoothMove(Location dest)
- Specified by:
smoothMove
in interface IRobot
smoothMove
public void smoothMove(Location src,
Location dest,
long ms)
- Specified by:
smoothMove
in interface IRobot
dragDrop
public void dragDrop(Location start,
Location end,
int steps,
long ms,
int buttons)
- Specified by:
dragDrop
in interface IRobot
delay
public void delay(int ms)
- Specified by:
delay
in interface IRobot
- Overrides:
delay
in class Robot
captureScreen
public ScreenImage captureScreen(Rectangle rect)
- Specified by:
captureScreen
in interface IRobot
pressModifiers
public void pressModifiers(int modifiers)
- Specified by:
pressModifiers
in interface IRobot
releaseModifiers
public void releaseModifiers(int modifiers)
- Specified by:
releaseModifiers
in interface IRobot
doType
protected void doType(IRobot.KeyMode mode,
int... keyCodes)
typeChar
public void typeChar(char character,
IRobot.KeyMode mode)
- Specified by:
typeChar
in interface IRobot
getDevice
public Object getDevice()
- Description copied from interface:
IRobot
- Return the underlying device object (if any).
- Specified by:
getDevice
in interface IRobot