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

    Function WinSetTitleByHandle

    • Changes the title of a window.

      Parameters

      • windowHandle: bigint

        The handle of the window to modify.

      • newTitle: string

        The new title to set for the window.

      Returns number

      1 if successful, 0 otherwise.

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

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

      WinSetTitleByHandle(windowHandle, 'New Title');