Methods Details
Last updated
Was this helpful?
Last updated
Was this helpful?
Perform a left click at the specified coordinates with the mouse.
Coordinates (x, y) where to click : x - X position y - Y position
Perform a right click at the specified coordinates with the mouse.
Coordinates (x, y) where to click : x - X position y - Y position
Perform a double click at the specified coordinates with the mouse.
Coordinates (x, y): x - X position y - Y position
Perform a drag and drop movement from a source coordinate to a destination coordinate with the mouse.
srcX - X source position srcY - Y source position destX - X destination position destY - Y destination position
Details : The robot will press the mouse right-button at source coordinates, move the cursor to destination index and release the button*
Perform a keyPress/keyRelease on the ENTER key.
Write text as direct keyboard input.
text - Text to write (Work with A-Z letters, space, numbers and dot)
Write text with the bot by pasting a given string from the clipboard.
text - Text to write (to paste)
Close the current windows
(Equivalent of closeCurrentWindows(false)
)
Close the current windows or quit an app
quit - true
completely quit the current app (on macOS only)
Perform a keyboard shortcut with the cmd or ctrl key (depending of the os) and another specified key
keycode - Second key to press
We recommend you to import java.awt.event.KeyEvent
, to enumerate the possible keycodes (e.g. KeyEvent.VK_A)
Do a "cmd + space" to show the Spotlight search box on macOS.
Perform a keyPress/keyRelease on the Windows key to show the start menu.
Write text in a text box and "send" it one time (by pressing enter).
x - X Position of the text box y - Y Position of the text box text - Text to send
Write text in a text box and "send" it several times (by pressing enter).
x - X Position of the text box y - Y Position of the text box text - Text to send frequency - Number of repetitions
Write string in a text box and "send" it several times (by pressing enter), at a given interval.
x - X Position of the text box y - Y Position of the text box text - Text to send frequency - Number of repetitions interval - Delay between each sending (in ms)