close

fun close(interfaceComponent: Component): Boolean

Finds the close button among the components of the provided interface widget, and closes it using mouse.

Return

true if the interface is not opened or was successfully closed, false otherwise.

Parameters

interfaceComponent

Widget of interface that is being closed

fun close(closeButton: Component?, hotkey: Boolean): Boolean

Finds the close button among the components of the provided interface widget, and closes it using either mouse or hotkey. WARNING: It is recommended to use the overloaded method .close. In the future, when the antipatterns are implemented, the client will automatically decide whether or not to use hotkeys to close the interface.

Return

true if the interface is not opened or was successfully closed, false otherwise.

Parameters

interfaceComponent

Widget of interface that is being closed

hotkey

Whether or not use hotkey to close the interface

fun close(interfaceComponents: Array<Component>?): Boolean

Finds the close button among the provided interface components, and closes it using mouse.

Return

true if the interface is not opened or was successfully closed, false otherwise.

Parameters

interfaceComponents

Components of interface that is being closed

fun close(interfaceComponents: Array<Component>?, hotkey: Boolean): Boolean

Finds the close button among the provided interface components, and closes it using either mouse or hotkey. WARNING: It is recommended to use the overloaded method .close. In the future, when the antipatterns are implemented, the client will automatically decide whether or not to use hotkeys to close the interface.

Return

true if the interface is not opened or was successfully closed, false otherwise.

Parameters

interfaceComponents

Components of interface that is being closed

hotkey

Whether or not use hotkey to close the interface