Retrieves the full title from a window.
WinGetTitle ( "title" [, "text"] )
title | The title/hWnd/class of the window to get the title. See Title special definition. |
text | [optional] The text of the window to get the title. Default is an empty string. See Text special definition. |
Success: | a string containing the complete window title. |
Failure: | "" if the window is not found. |
WinGetTitle("[active]") returns the active window's title. WinGetTitle() works on both minimized and hidden windows. If multiple windows match the criteria, the most recently active window is used.
AutoItWinGetTitle, WinGetText, WinSetTitle, WinTitleMatchMode (Option)