interact

abstract fun interact(action: String?): Boolean

Interacts with the target and compensates for movement. This method will interact (and choose it) when it finds the desired action. This method accomplishes it via left or right click.

Return

true if the mouse was clicked, otherwise false

Parameters

action

the action to look for

abstract fun interact(action: String?, useMenu: Boolean): Boolean

Interacts with the target and compensates for movement. This method will interact (and choose it) when it finds the desired action. This method accomplishes it via left or right click (as defined). When auto is set to false, the method forcibly right clicks before searching for menu options. This is useful when precision clicking is required and the option is always in the menu (not up-text).

Return

true if the mouse was clicked, otherwise false

Parameters

action

the action to look for

useMenu

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

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

Interacts with the target and compensates for movement. This method will interact (and choose it) when it finds the desired action. This method accomplishes it via left or right click (as defined). When auto is set to false, the method forcibly right clicks before searching for menu options. This is useful when precision clicking is required and the option is always in the menu (not up-text).

Return

true if the mouse was clicked, otherwise false

Parameters

action

the action to look for

option

the option to look for

abstract fun interact(action: String?, option: String?, useMenu: Boolean): Boolean

Interacts with the target and compensates for movement. This method will interact (and choose it) when it finds the desired action. This method accomplishes it via left or right click.

Return

true if the mouse was clicked, otherwise false

Parameters

action

the action to look for

option

the option to look for

useMenu

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

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

Interacts with the target and compensates for movement. This method will interact (and choose it) when it finds the desired action. This method accomplishes it via left or right click.

Return

true if the mouse was clicked, otherwise false

Parameters

f

the menu command to look for

abstract fun interact(f: Filter<MenuCommand>, useMenu: Boolean): Boolean

Interacts with the target and compensates for movement. This method will interact (and choose it) when it finds the desired action. This method accomplishes it via left or right click.

Return

true if the mouse was clicked, otherwise false

Parameters

f

the menu command to look for

useMenu

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