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

    Function WinMoveByHandle

    • Moves a window to a specified position and resizes it.

      Parameters

      • windowHandle: bigint

        The handle of the window to move.

      • x: number

        The X coordinate of the new position.

      • y: number

        The Y coordinate of the new position.

      • width: number = -1

        The new width of the window.

      • height: number = -1

        The new height of the window.

      Returns number

      1 if successful, 0 otherwise.

      import { WinMoveByHandle, WinGetHandle } from '@ahmic/autoit-js';

      const windowHandle = WinGetHandle('Untitled - Notepad');

      WinMoveByHandle(windowHandle, 100, 100, 800, 600);