Changes the title of a window.
The handle of the window to modify.
The new title to set for the window.
A promise that resolves to 1 if successful, or 0 otherwise.
import { WinSetTitleByHandle, WinGetHandle } from '@ahmic/autoit-js';const windowHandle = await WinGetHandle('Untitled - Notepad');await WinSetTitleByHandle(windowHandle, 'New Title'); Copy
import { WinSetTitleByHandle, WinGetHandle } from '@ahmic/autoit-js';const windowHandle = await WinGetHandle('Untitled - Notepad');await WinSetTitleByHandle(windowHandle, 'New Title');
https://www.autoitscript.com/autoit3/docs/functions/WinSetTitle.htm
Changes the title of a window.