Closes a window.
WinClose ( "title" [, "text"] )
|title||The title of the window to close. See Title special definition.|
|text||[optional] The text of the window to close.|
|Failure:||Returns 0 if window is not found.|
RemarksThis function sends a close message to a window, the result depends on the window (it may ask to save data, etc.). To force a window to close, use the WinKill function. If multiple windows match the criteria, the window that was most recently active is closed.
RelatedWinActivate, WinExists, WinKill, WinSetState, WinTitleMatchMode (Option), ProcessClose, WinMove