click

abstract fun click(): Boolean

Clicks the target and compensates for movement. Does not check intent or expected result (mouse cross-hair).

Return

true if the click was executed; otherwise false

abstract fun click(action: String?): Boolean

Clicks the target and compensates for movement. This method expects (and requires) that the given action is up-text (menu index 0). This method can be used when precision clicking is required, and the option is guaranteed to be up-text. WARNING: this method DOES NOT check intent or expected result (mouse cross-hair). WARNING: The return status does not guarantee the correct action was acted upon.

Return

true if the mouse was clicked, otherwise false

Parameters

action

the action to look for

abstract fun click(action: String?, option: String?): Boolean

Clicks the target and compensates for movement. This method expects (and requires) that the given action is up-text (menu index 0). This method can be used when precision clicking is required, and the option is guaranteed to be up-text. WARNING: this method DOES NOT check intent or expected result (mouse cross-hair). WARNING: The return status does not guarantee the correct action was acted upon.

Return

true if the mouse was clicked, otherwise false

Parameters

action

the action to look for

option

the option to look for

abstract fun click(f: (MenuCommand) -> Boolean): Boolean
abstract fun click(c: Filter<MenuCommand>, useMenu: Boolean): Boolean

Clicks the target. This method expects (and requires) that the given action is up-text (menu index 0). This method can be used when precision clicking is required, and the option is guaranteed to be up-text. WARNING: this method DOES NOT check intent or expected result (mouse cross-hair). WARNING: The return status does not guarantee the correct action was acted upon.

Return

true if the mouse was clicked, otherwise false

Parameters

c

the menu command to look for

useMenu

whether or not a menu will open (some interactions are without menu even on single-tap enabled)