Package org.sikuli.vnc
Class VNCScreen
- java.lang.Object
-
- org.sikuli.script.Element
-
- org.sikuli.script.Region
-
- org.sikuli.vnc.VNCScreen
-
-
Field Summary
-
Fields inherited from class org.sikuli.script.Region
BB, BH, BL, BM, BOTTOM, BR, C2, CH, CV, EAST, EAST_MID, EAST_NORTH, EAST_SOUTH, EH, EM, EN, ES, LB, LEFT, LH, LL, LM, logName, LT, M2, M3, MH, MID_HORIZONTAL, MID_VERTICAL, MIDDLE, MIDDLE_BIG, MM, MV, NE, NH, NM, NORTH, NORTH_EAST, NORTH_MID, NORTH_WEST, NW, otherScreen, RB, RH, RIGHT, RM, RR, RT, SE, SH, SM, SOUTH, SOUTH_EAST, SOUTH_MID, SOUTH_WEST, SW, TH, TL, TM, TOP, TR, TT, WEST, WEST_MID, WEST_NORTH, WEST_SOUTH, WH, WM, WN, WS
-
Fields inherited from class org.sikuli.script.Element
h, imageMissingHandler, lastFindTime, lastMatch, lastMatches, lastSearchTime, lastSearchTimeRepeat, logLevel, w, x, y
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description ScreenImagecapture()ScreenImagecapture(int x, int y, int w, int h)ScreenImagecapture(Rectangle rect)ScreenImagecapture(Region reg)RectanglegetBounds()com.sikulix.vnc.VNCClientgetClient()intgetID()intgetIdFromPoint(int srcx, int srcy)StringgetIDString()ScreenImagegetLastScreenImageFromScreen()protected <PSIMRL> LocationgetLocationFromTarget(PSIMRL target)IRobotgetRobot()booleanisRunning()LocationnewLocation(int x, int y)LocationnewLocation(Location loc)RegionnewRegion(int x, int y, int w, int h)RegionnewRegion(Location loc, int w, int h)RegionnewRegion(Region reg)Locationset(Location element)Regionset(Region element)LocationsetOther(Location element)RegionsetOther(Region element)static VNCScreenstart()static VNCScreenstart(String theIP)static VNCScreenstart(String theIP, int thePort)static VNCScreenstart(String theIP, int thePort, int cTimeout, int timeout)static VNCScreenstart(String theIP, int thePort, String password, int cTimeout, int timeout)static voidstartUp(int waittime)voidstop()static voidstopAll()ScreenImageuserCapture(String msg)-
Methods inherited from class org.sikuli.script.Region
above, above, aboveAt, aboveAt, add, add, add, aInput, aKey, asOffset, aSwipe, aSwipeDown, aSwipeLeft, aSwipeRight, aSwipeUp, aTap, atMouse, below, below, belowAt, belowAt, checkMatch, click, click, click, contains, contains, containsMouse, copyTo, copyTo, create, create, create, create, create, create, create, delayClick, delayType, doHighlight, doubleClick, doubleClick, doubleClick, drag, dragDrop, dragDrop, dropAt, exists, exists, existsText, existsText, find, findAll, findAllByColumn, findAllByRow, findAllList, findAllText, findAny, findAnyList, findBest, findBestList, findText, get, getAll, getAutoWaitTimeout, getBottomLeft, getBottomRight, getCell, getCenter, getCol, getCol, getCols, getColW, getDefaultInstance4py, getEvent, getEvents, getFakeRegion, getFindFailedResponse, getImage, getInset, getLastScreenImage, getLastScreenImageFile, getLastScreenImageFile, getLastScreenImageFile, getObserver, getObserveScanRate, getRect, getRectangle, getRepeatWaitTime, getROI, getRow, getRow, getRowH, getRows, getScreen, getScreenContaining, getTarget, getThrowException, getTopLeft, getTopRight, getWaitScanRate, grow, grow, grow, grow, grow, grow, grow, has, has, hasEvents, hasObserver, hasText, highlight, highlight, highlight, highlight, highlight4py, highlightAllOff, highlightOff, highlightOn, highlightOn, hover, hover, initScreen, inside, internalUseOnlyHighlightReset, intersection, isObserving, isOtherScreen, isRasterValid, isValid, isVirtual, keyDown, keyDown, keyUp, keyUp, keyUp, left, left, leftAt, leftAt, make4py, morphTo, mouseDown, mouseMove, mouseMove, mouseMove, mouseUp, mouseUp, moveTo, nearby, nearby, observe, observe, observeInBackground, observeInBackground, observeInLine, offset, offset, onAppear, onAppear, onChange, onChange, onChange, onChange, onVanish, onVanish, paste, paste, regionOnScreen, relocate, relocate, resetFindFailedResponse, resetScreens, resetThrowException, right, right, rightAt, rightAt, rightClick, rightClick, rightClick, saveCapture, saveLastScreenImage, setActive, setAutoWaitTimeout, setBottomLeft, setBottomRight, setCenter, setCols, setFindFailedHandler, setFindFailedResponse, setH, setInactive, setLocation, setObserveScanRate, setOtherScreen, setOtherScreen, setRaster, setRect, setRect, setRect, setRepeatWaitTime, setROI, setROI, setROI, setROI, setRows, setScreen, setScreen, setSize, setThrowException, setTopLeft, setTopRight, setVirtual, setW, setWaitScanRate, setX, setY, showScreens, stopObserver, stopObserver, toGlobalCoord, toString, toStringShort, type, type, type, type, type, type, union, unionAll, unionAny, unionAnyList, virtual, wait, wait, wait, waitAny, waitAnyList, waitBest, waitBestList, waitT, waitT, waitText, waitText, waitVanish, waitVanish, wheel, wheel, wheel, write
-
Methods inherited from class org.sikuli.script.Element
collectLines, collectLinesText, collectWords, collectWordsText, existsT, findAllT, findLine, findLines, findLines, findT, findWord, findWords, findWords, getBufferedImage, getH, getImageFromTarget, getLastMatch, getLastMatches, getName, getW, getX, getY, hasT, isEmpty, log, returnThis, setImageMissingHandler, setName, text, textChar, textLine, textLines, textWord, textWords
-
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.IScreen
getH, getLastScreenImageFile, getRect, getW, getX, getY, isOtherScreen
-
-
-
-
Method Detail
-
startUp
public static void startUp(int waittime)
-
start
public static VNCScreen start()
-
start
public static VNCScreen start(String theIP, int thePort, String password, int cTimeout, int timeout)
-
getIDString
public String getIDString()
- Specified by:
getIDStringin interfaceIScreen
-
stop
public void stop()
-
stopAll
public static void stopAll()
-
isRunning
public boolean isRunning()
-
capture
public ScreenImage capture()
-
capture
public ScreenImage capture(Region reg)
-
capture
public ScreenImage capture(Rectangle rect)
-
capture
public ScreenImage capture(int x, int y, int w, int h)
-
getIdFromPoint
public int getIdFromPoint(int srcx, int srcy)- Specified by:
getIdFromPointin interfaceIScreen
-
getLocationFromTarget
protected <PSIMRL> Location getLocationFromTarget(PSIMRL target) throws FindFailed
- Overrides:
getLocationFromTargetin classRegion- Throws:
FindFailed
-
getLastScreenImageFromScreen
public ScreenImage getLastScreenImageFromScreen()
- Specified by:
getLastScreenImageFromScreenin interfaceIScreen
-
userCapture
public ScreenImage userCapture(String msg)
- Specified by:
userCapturein interfaceIScreen
-
getClient
public com.sikulix.vnc.VNCClient getClient()
-
newLocation
public Location newLocation(int x, int y)
- Specified by:
newLocationin interfaceIScreen
-
newLocation
public Location newLocation(Location loc)
- Specified by:
newLocationin interfaceIScreen
-
newRegion
public Region newRegion(int x, int y, int w, int h)
-
-