Core Function WinSetTitle
From Sputnik Wiki
WinSetTitle ( <title>, <text>, <newtitle> )
Contents |
Description
Changes the title of a window.
Parameters
Title
The title of the window.
Text
The text of the window to read.
NewTitle
The new title to give to the window.
Return Value
Success: Returns 1.
Failure: Returns 0.
Remarks
If multiple windows match the criteria the title of most recently active window is changed.
See "WinTitleMatchMode" in Opt
Example
$Result = WinSetTitle("Untitled - ", "", "My New Notepad"); if($Result) msgbox("Title was changed..."); else msgbox("Title was NOT changed...");