Logo

🖱️ Mouse Commands

Relative Mouse Commands

  • Movement Range: Movement values for X and Y are limited to -32767 to 32767
  • Scroll Range: Scroll values are limited to -127 to 127

Description: Moves the mouse cursor relative to current position.

Syntax:

mouseMove <x> <y>

Example:

mouseMove 50 -30

Description: Clicks the specified mouse button.

Syntax:

mouseClick '<key_name>' '[<action>]'

Example:

mouseClick right
mouseClick right hold
mouseClick right release

Description: Double clicks the specified mouse button.

Syntax:

mouseDoubleClick <button>

Example:

mouseDoubleClick left

Description: Drags from current position and drops at relative coordinates.

Syntax:

mouseDragDrop <x> <y> <button>

Example:

mouseDragDrop 100 50 left

Description: Scrolls the mouse wheel.

Syntax:

mouseScroll <amount>

Example:

mouseScroll 5   // Scroll up
mouseScroll -3  // Scroll down

Description: Scrolls in a pattern (up/down repeatedly).

Syntax:

mouseScrollPattern <amount> <cycles> <stepDelay>

Example:

mouseScrollPattern 5 3 100  // Scroll up 5, down 5, up 5 (3 cycles) with 100ms delay

Advanced Relative Mouse Commands

Description: Creates random mouse movements (jitter effect).

Syntax:

mouseJitter <duration> <posDelay> <mouseClick> <mouseButton>

Example:

mouseJitter 5000 100 true left

Description: Locks mouse cursor in position for duration.

Syntax:

mouseLock <duration>

Example:

mouseLock 3000

Description: Moves mouse in a spiral pattern.

Syntax:

mouseSpiral <radius> <turns> <stepDelay>

Example:

mouseSpiral 100 3 50

Description: Draws a circle with mouse movements.

Syntax:

mouseDrawCircle <radius> <segments> <stepDelay>

Example:

mouseDrawCircle 50 36 20

Description: Draws by moving the mouse from pixel X to Y while holding a specified button. The button defaults to left if not specified.

Syntax:

mouseDraw <x> <y> [button]

Example:

mouseDraw 100 200
mouseDraw 50 150 right

Description: Moves mouse to screen corner.

Syntax:

mouseMoveCorner <corner>

Supported Corners:

  • top-left
  • top-right
  • bottom-left
  • bottom-right
  • center

Example:

mouseMoveCorner top-right

Absolute Mouse Commands

  • Absolute mouse commands may not work on all systems, especially Windows. It's recommended to use relative commands for better compatibility.

Description: Moves the mouse cursor to absolute coordinates.

Syntax:

moveAbs <x> <y>

Example:

moveAbs 500 300

Description: Moves the mouse cursor to absolute coordinates while holding a button.

Syntax:

moveHoldAbs <x> <y> <button>

Supported Buttons:

  • left
  • right
  • middle
  • backward
  • forward

Example:

moveHoldAbs 500 300 left

Description: Clicks at the current absolute position.

Syntax:

clickAbs <button>

Example:

clickAbs left

Description: Double clicks at the current absolute position.

Syntax:

doubleClickAbs <button>

Example:

doubleClickAbs left

Description: Drags from current position and drops at specified absolute coordinates.

Syntax:

dragDropAbs <x> <y> <button>

Example:

dragDropAbs 600 400 left

Description: Automated clicking at absolute position.

Syntax:

autoClickerAbs <button> <cps> <duration> <jitter> <jitterRange>

Parameters:

  • cps: Clicks per second
  • duration: Duration in milliseconds
  • jitter: true/false to enable position jitter
  • jitterRange: Pixel range for jitter effect

Example:

autoClickerAbs left 10 5000 true 5

On this page