The title of the window containing the status bar.
Optional text found in the window.
The part of the status bar to retrieve text from (default is 1).
The maximum number of characters to retrieve (default is 1024).
A promise that resolves to the text of the specified part of the status bar.
import { StatusbarGetText } from '@ahmic/autoit-js';
// The first part of Notepad's status bar is empty
const empty = await StatusbarGetText('Untitled - Notepad', '', 1);
const position = await StatusbarGetText('Untitled - Notepad', '', 2);
const zoom = await StatusbarGetText('Untitled - Notepad', '', 3);
const lingEndings = await StatusbarGetText('Untitled - Notepad', '', 4);
const encoding = await StatusbarGetText('Untitled - Notepad', '', 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"
Retrieves the text from a specified part of a status bar in a window. Note that the status bar parts use 1-based indexing.