Core Function WinClose
From Sputnik Wiki
WinClose ( <title>, <text> )
Contents |
Description
Closes a window.
Parameters
Title
The title of the window.
Text
Optional; The text of the window to read.
Return Value
None.
Remarks
This 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.
See "WinTitleMatchMode" in Opt
Example
WinClose("Untitled - Notepad", "");