Package | Description |
---|---|
org.sikuli.script | |
org.sikuli.script.compare | |
org.sikuli.util |
Modifier and Type | Method and Description |
---|---|
Location |
Location.above(int dy)
creates a point at the given offset above, might be negative
might create a point outside of any screen, not checked |
Location |
Region.aboveAt() |
Location |
Region.aboveAt(int offset)
negative offset goes towards top of screen
might be off current screen |
Location |
Region.asOffset()
create a Location object, that can be used as an offset taking the width and hight of this Region
|
static Location |
Mouse.at() |
static Location |
Region.atMouse()
Deprecated.
use
Mouse.at() instead |
Location |
Location.below(int dy)
creates a point at the given offset below, might be negative
might create a point outside of any screen, not checked |
Location |
Region.belowAt() |
Location |
Region.belowAt(int offset)
positive offset goes towards bottom of screen
might be off current screen |
Location |
Location.click()
Move the mouse to this location point and click left
|
static Location |
Mouse.click(Location loc,
String action,
Integer... args)
to click (left, right, middle - single or double) at the given location using the given button
only useable for local screens
timing parameters:
- one value < 0 wait before mouse down > 0 wait after mouse up - 2 or 3 values 1st wait before mouse down 2nd wait after mouse up 3rd inner wait (milli secs, cut to 1000): pause between mouse down and up (Settings.ClickDelay) wait before and after: > 9 taken as milli secs - 1 ... |
static Location |
Commands.click(Object... args)
move the mouse with hover() and click using the left button
|
Location |
Location.copyTo(int scrID)
new point with same offset to current screen's top left on given screen
|
Location |
Location.copyTo(IScreen screen)
New point with same offset to current screen's top left on given screen
|
Location |
Location.doubleClick()
Move the mouse to this location point and double click left
|
static Location |
Commands.doubleClick(Object... args)
move the mouse with hover() and double click using the left button
|
Location |
Region.getBottomLeft() |
Location |
Region.getBottomRight() |
Location |
Region.getCenter() |
static Location |
Env.getMouseLocation()
Deprecated.
use
Mouse.at() instead |
Location |
Image.getOffset()
Get the value of offset
|
Location |
Location.getOffset(Location loc)
the offset of given point to this Location
|
Location |
Region.getTarget()
convenience method
|
Location |
Match.getTarget()
convenience method
|
Location |
Pattern.getTargetOffset() |
Location |
Match.getTargetOffset()
convenience - same as
Pattern.getTargetOffset() |
Location |
Region.getTopLeft() |
Location |
Region.getTopRight() |
Location |
Location.hover()
Move the mouse to this location point
|
static Location |
Commands.hover(Object... args)
move the mouse to the given location with a given offset
3 parameter configurations: --1: wait for a visual and move mouse to it (args see wait()) --2: move to the given region/location/match with a given offset --3: move to the given offset relative to the last match of the region in use |
Location |
Location.left(int dx)
creates a point at the given offset to the left, might be negative
might create a point outside of any screen, not checked |
Location |
Region.leftAt() |
Location |
Region.leftAt(int offset)
negative offset goes to the left
might be off current screen |
Location |
Location.move(int X,
int Y)
convenience: like awt point
|
Location |
Location.moveFor(int dx,
int dy)
Deprecated.
|
Location |
Location.moveTo(int X,
int Y)
Deprecated.
use
move(int, int) |
Location |
Screen.newLocation(Location loc)
creates a location on the current screen with the given point.
|
Location |
Location.offset(int dx,
int dy)
creates a point at the given offset, might be negative
might create a point outside of any screen, not checked |
Location |
Location.offset(Location loc)
creates a point at the given offset, might be negative
might create a point outside of any screen, not checked |
static Location |
Sikulix.popat() |
static Location |
Sikulix.popat(int atx,
int aty) |
static Location |
Sikulix.popat(Location at) |
static Location |
Sikulix.popat(Region at) |
Location |
Location.right(int dx)
creates a point at the given offset to the right, might be negative
might create a point outside of any screen, not checked |
Location |
Region.rightAt()
point middle on right edge
|
Location |
Region.rightAt(int offset)
positive offset goes to the right.
|
Location |
Location.rightClick()
Move the mouse to this location point and click right
|
static Location |
Commands.rightClick(Object... args)
move the mouse with hover() and do a right click
|
Location |
Location.setLocation(double x,
double y)
sets the coordinates to the given values (moves it)
|
Location |
Location.setLocation(int x,
int y)
sets the coordinates to the given values (moves it)
|
Location |
Location.setOtherScreen(IScreen scr)
INTERNAL USE
identifies the point as being on a non-desktop-screen
|
Location |
Location.translate(int dx,
int dy)
convenience: like awt point
|
Modifier and Type | Method and Description |
---|---|
Region |
Region.add(Location loc)
extend the region, so it contains the given point
but only the part inside the current screen |
static Location |
Mouse.click(Location loc,
String action,
Integer... args)
to click (left, right, middle - single or double) at the given location using the given button
only useable for local screens
timing parameters:
- one value < 0 wait before mouse down > 0 wait after mouse up - 2 or 3 values 1st wait before mouse down 2nd wait after mouse up 3rd inner wait (milli secs, cut to 1000): pause between mouse down and up (Settings.ClickDelay) wait before and after: > 9 taken as milli secs - 1 ... |
int |
Location.compareTo(Location loc) |
boolean |
Region.contains(Location point)
check if current region contains given point
|
static Region |
Region.create(Location loc,
int w,
int h)
Create a region with the provided top left corner and size
|
static Region |
Region.create(Location loc,
int create_x_direction,
int create_y_direction,
int w,
int h)
create a region with a corner at the given point
as specified with x y 0 0 top left 0 1 bottom left 1 0 top right 1 1 bottom right |
Location |
Location.getOffset(Location loc)
the offset of given point to this Location
|
static Region |
Region.grow(Location loc)
create a minimal region at given point with size 1 x 1
|
static Region |
Region.grow(Location loc,
int w,
int h)
create a region with the given point as center and the given size
|
static Region |
Region.grow(Location loc,
int x,
int y,
int w,
int h)
create a region with a corner at the given point
as specified with x y 0 0 top left 0 1 bottom left 1 0 top right 1 1 bottom right same as the corresponding create method, here to be naming compatible with class Location |
static int |
Mouse.move(Location loc)
move the mouse to the given location (local and remote)
|
Region |
Region.moveTo(Location loc)
Deprecated.
to be like AWT Rectangle API use setLocation()
|
Location |
Screen.newLocation(Location loc)
creates a location on the current screen with the given point.
|
Region |
Screen.newRegion(Location loc,
int width,
int height)
creates a region on the current screen with the given coordinate/size.
|
Region |
Region.offset(Location loc)
create region with same size at top left corner offset
|
Location |
Location.offset(Location loc)
creates a point at the given offset, might be negative
might create a point outside of any screen, not checked |
static Location |
Sikulix.popat(Location at) |
Region |
Region.setBottomLeft(Location loc)
Moves the region to the area, whose bottom left corner is the given location
|
Region |
Region.setBottomRight(Location loc)
Moves the region to the area, whose bottom right corner is the given location
|
Region |
Region.setCenter(Location loc)
Moves the region to the area, whose center is the given location
|
Region |
Region.setLocation(Location loc)
set the regions position
this might move the region even to another screen |
Image |
Image.setOffset(Location offset)
Set the value of offset
|
void |
Match.setTargetOffset(Location offset)
like
Pattern.targetOffset
sets the click target by offset relative to the center |
Region |
Region.setTopLeft(Location loc)
Moves the region to the area, whose top left corner is the given location
|
Region |
Region.setTopRight(Location loc)
Moves the region to the area, whose top right corner is the given location
|
void |
Screen.showTarget(Location loc) |
void |
IScreen.showTarget(Location location) |
void |
RobotDesktop.smoothMove(Location dest) |
void |
IRobot.smoothMove(Location dest) |
void |
RobotDesktop.smoothMove(Location src,
Location dest,
long ms) |
void |
IRobot.smoothMove(Location src,
Location dest,
long ms) |
Pattern |
Pattern.targetOffset(Location loc)
set the offset from the match's center to be used with mouse actions
|
Constructor and Description |
---|
Location(Location loc)
duplicates the point
|
Constructor and Description |
---|
DistanceComparator(Location location)
Constructor for class DistanceComparator.
|
Modifier and Type | Method and Description |
---|---|
void |
ScreenHighlighter.showTarget(Location loc,
float secs) |
void |
FakeRobot.smoothMove(Location dest) |
void |
FakeRobot.smoothMove(Location src,
Location dest,
long ms) |
Copyright © 2017. All rights reserved.