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: Smooth relative movement with wheel support.

Syntax:

mouseMoveSoft <x> <y> <wheel> <delayMs>

Example:

mouseMoveSoft 300 -120 0 3

Description: Human-friendly smooth relative movement (wheel is always 0).

Syntax:

mouseMoveSmooth <x> <y> [steps] [delayMs]

Examples:

mouseMoveSmooth 300 -120
mouseMoveSmooth 300 -120 24 3

Note: Optional values must be provided together as <steps> <delayMs>.

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

Description: Automated relative clicking with optional jitter.

Syntax:

autoClicker <button> <cps> <duration> <jitter> <jitterRange>

Parameters:

  • button: left, right, middle, backward, forward
  • cps: Clicks per second
  • duration: Duration in milliseconds
  • jitter: true or false
  • jitterRange: Relative movement range while clicking

Example:

autoClicker left 10 5000 true 5

Advanced Relative Mouse Commands

Description: Creates random mouse movements (jitter effect).

Syntax:

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

Example:

mouseJitter 5000 100 true left

Description: Creates more human-like jitter with smoother micro-movements and optional random click chance.

Syntax:

mouseHumanJitter <duration> <posDelay> <mouseClick> <mouseButton> [maxStep] [clickChancePercent]

Example:

mouseHumanJitter 5000 70 true left 8 20

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

On this page