Core Function WinSetTitle
From Sputnik Wiki
(Difference between revisions)
UberFoX (Talk | contribs)
(Created page with "<pre> WinSetTitle ( <title>, <text>, <newtitle> ) </pre> === Description === Changes the title of a window. === Parameters === ==== Title ==== The title of the window. ====...")
Newer edit →
(Created page with "<pre> WinSetTitle ( <title>, <text>, <newtitle> ) </pre> === Description === Changes the title of a window. === Parameters === ==== Title ==== The title of the window. ====...")
Newer edit →
Revision as of 06:34, 30 November 2011
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...");