Core Function WinSetTitle
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> WinSetTitle ( <title>, <text>, <newtitle> ) </pre> === Description === Changes the title of a window. === Parameters === ==== Title ==== The title of the window. ====...") |
m (1 revision) |
Revision as of 21:40, 11 August 2014
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...");