Package org.sikuli.script.support
Class RobotDesktop
java.lang.Object
java.awt.Robot
org.sikuli.script.support.RobotDesktop
- All Implemented Interfaces:
IRobot
public class RobotDesktop extends Robot implements IRobot
INTERNAL USE Implementation of IRobot making a DesktopRobot using java.awt.Robot
-
Nested Class Summary
-
Field Summary
Fields Modifier and Type Field Description static intALL_MODIFIERSstatic intstdAutoDelaystatic intstdDelaystatic intstdMaxElapsed -
Constructor Summary
Constructors Constructor Description RobotDesktop() -
Method Summary
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, waitForIdleMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.sikuli.script.support.IRobot
mouseMove, mouseWheel, setAutoDelay, waitForIdle
-
Field Details
-
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 Details
-
RobotDesktop
- Throws:
AWTException
-
-
Method Details
-
delay
public void delay(int ms) -
captureScreen
- Specified by:
captureScreenin interfaceIRobot
-
getColorAt
- Specified by:
getColorAtin interfaceIRobot
-
isRemote
public boolean isRemote() -
getScreen
Description copied from interface:IRobotReturn the underlying device object (if any). -
smoothMove
- Specified by:
smoothMovein interfaceIRobot
-
smoothMoveSlow
-
smoothMove
- Specified by:
smoothMovein interfaceIRobot
-
moveMouse
public void moveMouse(int x, int y) -
mouseDown
public void mouseDown(int buttons) -
mouseUp
public int mouseUp(int buttons) -
mouseReset
public void mouseReset()- Specified by:
mouseResetin interfaceIRobot
-
clickStarts
public void clickStarts()- Specified by:
clickStartsin interfaceIRobot
-
clickEnds
public void clickEnds() -
pressModifiers
public void pressModifiers(int modifiers)- Specified by:
pressModifiersin interfaceIRobot
-
releaseModifiers
public void releaseModifiers(int modifiers)- Specified by:
releaseModifiersin interfaceIRobot
-
keyDown
-
keyDown
public void keyDown(int code) -
keyUp
-
keyUp
public void keyUp(int code) -
keyUp
public void keyUp() -
typeChar
-
typeKey
public void typeKey(int key) -
typeStarts
public void typeStarts()- Specified by:
typeStartsin interfaceIRobot
-
typeEnds
public void typeEnds() -
cleanup
public void cleanup()
-