Changes the title of a window.
WinSetTitle ( "title", "text", "newtitle" )
Parameters
| title | The title of the window to change. See Title special definition. |
| text | The text of the window to change. |
| newtitle | The new title to give to the window. |
Return Value
| Success: | Returns 1. |
| Failure: | Returns 0 if window is not found. |
Remarks
If multiple windows match the criteria the title of most recently active window is changed.
Related
AutoItWinSetTitle, WinGetTitle, WinTitleMatchMode (Option)
Example
WinSetTitle("Untitled - ", "", "My New Notepad")