Package org.sikuli.script.support
Class RobotDesktop
- java.lang.Object
-
- java.awt.Robot
-
- org.sikuli.script.support.RobotDesktop
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.sikuli.script.support.IRobot
IRobot.KeyMode
-
-
Field Summary
Fields Modifier and Type Field Description static intALL_MODIFIERSstatic intstdAutoDelaystatic intstdDelaystatic intstdMaxElapsed
-
Constructor Summary
Constructors Constructor Description RobotDesktop()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ScreenImagecaptureScreen(Rectangle rect)voidcleanup()voidclickEnds()voidclickStarts()voiddelay(int ms)ColorgetColorAt(int x, int y)ScreengetScreen()Return the underlying device object (if any).booleanisRemote()voidkeyDown(int code)voidkeyDown(String keys)voidkeyUp()voidkeyUp(int code)voidkeyUp(String keys)voidmouseDown(int buttons)voidmouseReset()intmouseUp(int buttons)voidmoveMouse(int x, int y)voidpressModifiers(int modifiers)voidreleaseModifiers(int modifiers)voidsmoothMove(Location dest)voidsmoothMove(Location src, Location dest, long ms)voidsmoothMoveSlow(Location dest)voidtypeChar(char character, IRobot.KeyMode mode)voidtypeEnds()voidtypeKey(int key)voidtypeStarts()-
Methods inherited from class java.awt.Robot
createMultiResolutionScreenCapture, createScreenCapture, getAutoDelay, getPixelColor, isAutoWaitForIdle, keyPress, keyRelease, mouseMove, mousePress, mouseRelease, mouseWheel, setAutoDelay, setAutoWaitForIdle, toString, waitForIdle
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.sikuli.script.support.IRobot
mouseMove, mouseWheel, setAutoDelay, waitForIdle
-
-
-
-
Field Detail
-
ALL_MODIFIERS
public static final int ALL_MODIFIERS
- See Also:
- Constant Field Values
-
stdAutoDelay
public static int stdAutoDelay
-
stdDelay
public static int stdDelay
-
stdMaxElapsed
public static int stdMaxElapsed
-
-
Constructor Detail
-
RobotDesktop
public RobotDesktop() throws AWTException- Throws:
AWTException
-
-
Method Detail
-
delay
public void delay(int ms)
-
captureScreen
public ScreenImage captureScreen(Rectangle rect)
- Specified by:
captureScreenin interfaceIRobot
-
getColorAt
public Color getColorAt(int x, int y)
- Specified by:
getColorAtin interfaceIRobot
-
getScreen
public Screen getScreen()
Description copied from interface:IRobotReturn the underlying device object (if any).
-
smoothMove
public void smoothMove(Location dest)
- Specified by:
smoothMovein interfaceIRobot
-
smoothMoveSlow
public void smoothMoveSlow(Location dest)
-
smoothMove
public void smoothMove(Location src, Location dest, long ms)
- Specified by:
smoothMovein interfaceIRobot
-
moveMouse
public void moveMouse(int x, int y)
-
mouseReset
public void mouseReset()
- Specified by:
mouseResetin interfaceIRobot
-
clickStarts
public void clickStarts()
- Specified by:
clickStartsin interfaceIRobot
-
pressModifiers
public void pressModifiers(int modifiers)
- Specified by:
pressModifiersin interfaceIRobot
-
releaseModifiers
public void releaseModifiers(int modifiers)
- Specified by:
releaseModifiersin interfaceIRobot
-
typeChar
public void typeChar(char character, IRobot.KeyMode mode)
-
typeStarts
public void typeStarts()
- Specified by:
typeStartsin interfaceIRobot
-
-