public interface RRobot
| Modifier and Type | Method and Description |
|---|---|
RController |
block(org.eclipse.fx.core.ThreadSynchronize.BlockCondition<Void> b)
Block program flow until the condition is released
|
RController |
mouseMoveTo(int x,
int y)
Move the mouse to the provided position
|
int |
mouseX() |
int |
mouseY() |
RController |
press(javafx.scene.input.MouseButton button)
Press the button
|
RController |
release(javafx.scene.input.MouseButton button)
Release the button
|
RController |
sleep(Duration duration)
Sleep for the specified duration (without halting the event loop)
|
RController |
sleep(long milli)
Sleep for the provided milliseconds
|
RController |
text(String text)
Type the provided text
|
RController |
type(javafx.scene.input.KeyCode... codes)
Type the provided key codes
|
RController |
type(javafx.scene.input.KeyCodeCombination... combinations)
Type the provided key combinations
|
RController sleep(Duration duration)
duration - the durationint mouseX()
int mouseY()
RController mouseMoveTo(int x, int y)
x - the x coordinate of the cursor on screeny - the y coordinate of the cursor on screenRController press(javafx.scene.input.MouseButton button)
button - the button typeRController release(javafx.scene.input.MouseButton button)
button - the buttonRController sleep(long milli)
milli - the millisecondsRController block(org.eclipse.fx.core.ThreadSynchronize.BlockCondition<Void> b)
b - the block conditionRController type(javafx.scene.input.KeyCode... codes)
codes - the codesRController type(javafx.scene.input.KeyCodeCombination... combinations)
combinations - the combinationsRController text(String text)
text - the textCopyright © 2017. All rights reserved.