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

    Function WinGetTextByHandleSync

    • Retrieves the text from a window.

      Parameters

      • windowHandle: bigint

        The handle of the window to access.

      • characterCount: number = 1024

        The maximum number of characters to retrieve. Default is 1024.

      Returns string

      The text of the window as a string.

      import { WinGetTextByHandleSync, WinGetHandleSync } from '@ahmic/autoit-js';

      const windowHandle = WinGetHandleSync('Untitled - Notepad');
      const text = WinGetTextByHandleSync(windowHandle);

      console.log(text); // Output: "Example text"