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

    Function StatusbarGetTextByHandle

    • Retrieves the text from a specified part of a status bar in a window. Note that the status bar parts use 1-based indexing.

      Parameters

      • windowHandle: bigint

        The handle of the window containing the status bar.

      • part: number = 1

        The part of the status bar to retrieve text from (default is 1).

      • characterCount: number = 1024

        The maximum number of characters to retrieve (default is 1024).

      Returns string

      The text of the specified part of the status bar.

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

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

      // The first part of Notepad's status bar is empty
      const empty = StatusbarGetText(windowHandle, 1);
      const position = StatusbarGetText(windowHandle, 2);
      const zoom = StatusbarGetText(windowHandle, 3);
      const lingEndings = StatusbarGetText(windowHandle, 4);
      const encoding = StatusbarGetText(windowHandle, 5);

      console.log(empty) // ""
      console.log(position) // " Ln 1, Col 1"
      console.log(zoom) // " 100%"
      console.log(lingEndings) // " Windows (CRLF)"
      console.log(encoding) // " UTF-8"