Click at the current mouse coordinates (set by .moveTo()).

The button can be (0, 1, 2) or ('left', 'middle', 'right'). It defaults to left mouse button.

Parameters

Name Type description
button string|number

The mouse button

callback
Optional
function

Optional callback function to be called when the command finishes.