@ahmic/autoit-js
    Preparing search index...

    Function MouseClickDrag

    • Drags the mouse from a start position to an end position.

      Parameters

      • button: MouseButton

        The mouse button to use. See MouseButton for details.

      • startX: number

        The starting X coordinate.

      • startY: number

        The starting Y coordinate.

      • endX: number

        The ending X coordinate.

      • endY: number

        The ending Y coordinate.

      • speed: number = -1

        The speed of the drag (1 is fast, 100 is slow).

      Returns number

      import { MouseClickDrag } from '@ahmic/autoit-js';

      MouseClickDrag('left', 100, 100, 200, 200, 10);