Function WinMove

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

    Parameters

    • windowTitle: string

      The title of the window to move.

    • windowText: string = ''

      Optional text found in the window.

    • 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 { WinMove } from '@ahmic/autoit-js';

    WinMove('Untitled - Notepad', '', 100, 100, 800, 600);