click

fun click(filter: (MenuCommand) -> Boolean): Boolean
fun click(filter: Filter<MenuCommand>): Boolean

Attempts to click the menu command provided by the filter.

Return

true if the mouse has successfully clicked within the bounds of the MenuCommand

Parameters

filter

The filter to apply to the menu.

click

Whether or not to left-click.