Retrieves the title of a window.
The handle of the window to search for.
The number of characters to read from the window title buffer (default is 1024).
A promise that resolves to the title of the window if found, or an empty string if not found.
import { WinGetTitleByHandle, WinGetHandle } from '@ahmic/autoit-js';const handle = await WinGetHandle('Untitled - Notepad');const title = await WinGetTitleByHandle(handle);console.log(title); // Output: "Untitled - Notepad" Copy
import { WinGetTitleByHandle, WinGetHandle } from '@ahmic/autoit-js';const handle = await WinGetHandle('Untitled - Notepad');const title = await WinGetTitleByHandle(handle);console.log(title); // Output: "Untitled - Notepad"
https://www.autoitscript.com/autoit3/docs/functions/WinGetTitle.htm
Retrieves the title of a window.