Skip to content

Add relative mouse movement tool #4

@NakaokaRei

Description

@NakaokaRei

Description

Add support for moving the mouse cursor relative to its current position.

SwiftAutoGUI API Reference

  • moveMouse(dx: Int, dy: Int) - Move mouse relative to current position

Proposed Implementation

Create a new tool or extend existing moveMouse:

moveMouseRelative

  • Input:
    • dx (number) - Horizontal offset from current position
    • dy (number) - Vertical offset from current position
  • Moves the cursor relative to its current position

Alternative

Extend existing moveMouse tool with an optional relative boolean parameter.

Use Cases

  • Incremental cursor movements
  • Drag operations
  • Gaming automation where relative movement is common

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions