Function WinSetTitle

  • Changes the title of a window.

    Parameters

    • windowTitle: string

      The title of the window to modify.

    • windowText: string = ''

      Optional text found in the window.

    • newTitle: string

      The new title to set for the window.

    Returns number

    1 if successful, 0 otherwise.

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

    WinSetTitle('Untitled - Notepad', '', 'New Title');