Package | Description |
---|---|
org.sikuli.script |
Modifier and Type | Method and Description |
---|---|
<PFRML> void |
Region.aSwipe(PFRML from,
PFRML to)
EXPERIMENTAL: for Android over ADB
|
<PFRML> void |
Region.aTap(PFRML target)
EXPERIMENTAL: for Android over ADB
|
<PFRML> int |
Region.click(PFRML target)
left click at the given target location
Pattern or Filename - do a find before and use the match Region - position at center Match - position at match's targetOffset Location - position at that point |
<PFRML> int |
Region.click(PFRML target,
Integer modifiers)
left click at the given target location
holding down the given modifier keys Pattern or Filename - do a find before and use the match Region - position at center Match - position at match's targetOffset Location - position at that point |
<PFRML> int |
Region.doubleClick(PFRML target)
double click at the given target location
Pattern or Filename - do a find before and use the match Region - position at center Match - position at match's targetOffset Location - position at that point |
<PFRML> int |
Region.doubleClick(PFRML target,
Integer modifiers)
double click at the given target location
holding down the given modifier keys Pattern or Filename - do a find before and use the match Region - position at center Match - position at match's targetOffset Location - position at that point |
<PFRML> int |
Region.drag(PFRML target)
Prepare a drag action: move mouse to given target
press and hold left mouse button wait Settings.DelayAfterDrag |
<PFRML> int |
Region.dragDrop(PFRML target)
Drag from region's last match and drop at given target
applying Settings.DelayAfterDrag and DelayBeforeDrop using left mouse button |
<PFRML> int |
Region.dragDrop(PFRML t1,
PFRML t2)
Drag from a position and drop to another using left mouse button
applying Settings.DelayAfterDrag and DelayBeforeDrop |
<PFRML> int |
Region.dropAt(PFRML target)
finalize a drag action with a drop: move mouse to given target
wait Settings.DelayBeforeDrop before releasing the left mouse button |
<PSI> Match |
Region.find(PSI target)
finds the given Pattern, String or Image in the region and returns the best match.
|
<PSI> Iterator<Match> |
Region.findAll(PSI target)
finds all occurences of the given Pattern, String or Image in the region and returns an Iterator of Matches.
|
Iterator<Match> |
Region.findAllText(String text)
Use findAllText() instead of findAll() in cases where the given string could be misinterpreted as an image filename
|
Match |
Region.findText(String text)
Use findText() instead of find() in cases where the given string could be misinterpreted as an image filename
|
Match |
Region.findText(String text,
double timeout)
Use findText() instead of find() in cases where the given string could be misinterpreted as an image filename
|
<PFRML> int |
Region.hover(PFRML target)
move the mouse pointer to the given target location
same as mouseMove Pattern or Filename - do a find before and use the match Region - position at center Match - position at match's targetOffset Location - position at that point |
static void |
Sikulix.main(String[] args)
checking parameter -d on commandline
0 - list all available tests 1 - run all available tests n - run the test with that number if available |
<PFRML> int |
Region.mouseMove(PFRML target)
move the mouse pointer to the given target location
same as hover Pattern or Filename - do a find before and use the match Region - position at center Match - position at match's targetOffset Location - position at that point |
<PFRML> int |
Region.paste(PFRML target,
String text)
first does a click(target) at the given target position to gain focus/carret
and then pastes the text using the clipboard and strg/ctrl/cmd-v (paste keyboard shortcut) |
<PFRML> int |
Region.rightClick(PFRML target)
right click at the given target location
Pattern or Filename - do a find before and use the match Region - position at center Match - position at match's targetOffset Location - position at that point |
<PFRML> int |
Region.rightClick(PFRML target,
Integer modifiers)
right click at the given target location
holding down the given modifier keys Pattern or Filename - do a find before and use the match Region - position at center Match - position at match's targetOffset Location - position at that point |
<PFRML> int |
Region.type(PFRML target,
String text)
first does a click(target) at the given target position to gain focus/carret
enters the given text one character/key after another using keyDown/keyUp about the usable Key constants see keyDown(keys) Class Key only provides a subset of a US-QWERTY PC keyboard layout |
<PFRML> int |
Region.type(PFRML target,
String text,
int modifiers)
first does a click(target) at the given target position to gain focus/carret
enters the given text one character/key after another using keyDown/keyUp while holding down the given modifier keys about the usable Key constants see keyDown(keys) Class Key only provides a subset of a US-QWERTY PC keyboard layout |
<PFRML> int |
Region.type(PFRML target,
String text,
String modifiers)
first does a click(target) at the given target position to gain focus/carret
enters the given text one character/key after another using keyDown/keyUp while holding down the given modifier keys about the usable Key constants see keyDown(keys) Class Key only provides a subset of a US-QWERTY PC keyboard layout |
static Match |
Commands.wait(Object... args)
wait for the given visual to appear within the given wait time
args [String|Pattern|Double, [Double, [Float]]] (max 3 args) arg1: String/Pattern to search or double time to wait (rest ignored) arg2: time to wait in seconds arg3: minimum similarity to use for search (overwrites Pattern setting) |
<PSI> Match |
Region.wait(PSI target)
Waits for the Pattern, String or Image to appear until the AutoWaitTimeout value is exceeded.
|
<PSI> Match |
Region.wait(PSI target,
double timeout)
Waits for the Pattern, String or Image to appear or timeout (in second) is passed
|
<PFRML> int |
Region.wheel(PFRML target,
int direction,
int steps)
move the mouse pointer to the given target location
and move the wheel the given steps in the given direction: Button.WHEEL_DOWN, Button.WHEEL_UP |
<PFRML> int |
Region.wheel(PFRML target,
int direction,
int steps,
int stepDelay)
move the mouse pointer to the given target location
and move the wheel the given steps in the given direction: Button.WHEEL_DOWN, Button.WHEEL_UP |
Copyright © 2017. All rights reserved.