Core Function WinClose
From Sputnik Wiki
(Difference between revisions)
(Created page with "<pre> WinClose ( <title>, <text> ) </pre> === Description === Closes a window. === Parameters === ==== Title ==== The title of the window. === Return Value === None. === ...") |
|||
Line 12: | Line 12: | ||
The title of the window. | The title of the window. | ||
+ | |||
+ | ==== Text ==== | ||
+ | |||
+ | Optional; The text of the window to read. | ||
=== Return Value === | === Return Value === |
Revision as of 18:58, 29 November 2011
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", "");