🖱️ 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 -30Description: Clicks the specified mouse button.
Syntax:
mouseClick '<key_name>' '[<action>]'Example:
mouseClick right
mouseClick right hold
mouseClick right releaseDescription: Double clicks the specified mouse button.
Syntax:
mouseDoubleClick <button>Example:
mouseDoubleClick leftDescription: Drags from current position and drops at relative coordinates.
Syntax:
mouseDragDrop <x> <y> <button>Example:
mouseDragDrop 100 50 leftDescription: Scrolls the mouse wheel.
Syntax:
mouseScroll <amount>Example:
mouseScroll 5 // Scroll up
mouseScroll -3 // Scroll downDescription: 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 delayAdvanced Relative Mouse Commands
Description: Creates random mouse movements (jitter effect).
Syntax:
mouseJitter <duration> <posDelay> <mouseClick> <mouseButton>Example:
mouseJitter 5000 100 true leftDescription: Locks mouse cursor in position for duration.
Syntax:
mouseLock <duration>Example:
mouseLock 3000Description: Moves mouse in a spiral pattern.
Syntax:
mouseSpiral <radius> <turns> <stepDelay>Example:
mouseSpiral 100 3 50Description: Draws a circle with mouse movements.
Syntax:
mouseDrawCircle <radius> <segments> <stepDelay>Example:
mouseDrawCircle 50 36 20Description: 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 rightDescription: Moves mouse to screen corner.
Syntax:
mouseMoveCorner <corner>Supported Corners:
top-lefttop-rightbottom-leftbottom-rightcenter
Example:
mouseMoveCorner top-rightAbsolute 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 300Description: Moves the mouse cursor to absolute coordinates while holding a button.
Syntax:
moveHoldAbs <x> <y> <button>Supported Buttons:
leftrightmiddlebackwardforward
Example:
moveHoldAbs 500 300 leftDescription: Clicks at the current absolute position.
Syntax:
clickAbs <button>Example:
clickAbs leftDescription: Double clicks at the current absolute position.
Syntax:
doubleClickAbs <button>Example:
doubleClickAbs leftDescription: Drags from current position and drops at specified absolute coordinates.
Syntax:
dragDropAbs <x> <y> <button>Example:
dragDropAbs 600 400 leftDescription: Automated clicking at absolute position.
Syntax:
autoClickerAbs <button> <cps> <duration> <jitter> <jitterRange>Parameters:
cps: Clicks per secondduration: Duration in millisecondsjitter:true/falseto enable position jitterjitterRange: Pixel range for jitter effect
Example:
autoClickerAbs left 10 5000 true 5