click (left/right/middle) (<x>,<y>) (up/down/stroke) (<duration>)
Executes mouse actions as if they were performed by a real mouse.
Parameters:
- The mouse button to simulate. Valid options are “left”, “right”, and “middle”. The default value is “left”.
- The coordinates of the pixel to click at. These can be prefixed with “~” to use coordinates relative to the current position of the mouse. The default value is “~0,~0”. This argument takes the form of a list with 2 values in which the first value is the X coordinate and the second value is the Y coordinate.
- The type of click action to perform. Valid options are “up”, “down”, and “stroke”. The default value is “stroke”, which is a basic mouse down and up click.
- The duration in seconds for the click action. Decimal values are allowed. The default value is 0. The units are in seconds.