Core Function WinClose

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> WinClose ( <title>, <text> ) </pre> === Description === Closes a window. === Parameters === ==== Title ==== The title of the window. === Return Value === None. === ...")
 
m (1 revision)
 
(2 intermediate revisions by one user not shown)
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 ===

Latest revision as of 12:38, 14 June 2015

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", "");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox