Changes the title of a window.
WinSetTitle ( "title", "text", "newtitle" )
| 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. |
| Success: | Returns 1. |
| Failure: | Returns 0 if window is not found. |
Run("notepad.exe")
WinWait("[CLASS:Notepad]")
WinSetTitle("[CLASS:Notepad]", "", "My New Notepad")