Retrieves the title of a window.
The title of the window to search for.
Optional text found in the window.
The title of the window if found, or an empty string if not found.
import { WinGetTitle } from '@ahmic/autoit-js';const title = WinGetTitle('Untitled - Notepad');console.log(title); // Output: "Untitled - Notepad" Copy
import { WinGetTitle } from '@ahmic/autoit-js';const title = WinGetTitle('Untitled - Notepad');console.log(title); // Output: "Untitled - Notepad"
https://www.autoitscript.com/autoit3/docs/functions/WinGetTitle.htm
Retrieves the title of a window.