NativeAdapter class constructor
ClipboardActionProvider instance used to interact with a systems clipboard (Default: ClipboardAction)
KeyboardActionProvider instance used to interact with a systems keybaord (Default: KeyboardAction)
MouseActionProvider instance used to interact with a systems mouse (Default: MouseAction)
copy copies a given text to the system clipboard
The text to copy
currentMousePosition returns the current mouse position
Current cursor position at a certain Point
leftClick triggers a native left-click event via OS API
middleClick triggers a native middle-click event via OS API
paste pastes the current text on the system clipboard
The clipboard text
pressButton presses and holds a mouse Button
releaseButton releases a mouse Button previously clicked via pressButton
releaseKey releases a Key previously presses via pressKey
rightClick triggers a native right-click event via OS API
scrollDown triggers a downward mouse wheel scroll
The amount of 'ticks' to scroll
scrollLeft triggers a left mouse scroll
The amount of 'ticks' to scroll
scrollRight triggers a right mouse scroll
The amount of 'ticks' to scroll
scrollUp triggers an upwards mouse wheel scroll
The amount of 'ticks' to scroll
setKeyboardDelay configures keyboard delay between key presses
The keyboard delay in milliseconds
setMouseDelay configures mouse speed for movement
Mouse delay in milliseconds
setMousePosition changes the current mouse cursor position to a given Point
type types a given string via native keyboard events
The text to type
NativeAdapter serves as an abstraction layer for all OS level interactions.
This allows to provide a high level interface for native actions, without having to spread (possibly) multiple dependencies all over the code. All actions which involve the OS are bundled in this adapter.