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