Core Function WinKill

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Remarks)
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

WinKill ( <title>, <text> )

Contents

Description

Forces a window to close.

Parameters

Title

The title of the window.

Text

Optional; The text of the window to read.

Return Value

None.

Remarks

The difference between this function and WinClose is that WinKill will forcibly terminate the window if it doesn't close quickly enough. Consequently, a user might not have time to respond to dialogs prompting the user to save data.

Although WinKill can work on both minimized and hidden windows, some windows (notably Windows Explorer) can only be terminated using WinClose.

See "WinTitleMatchMode" in Opt.

Example

WinKill("Untitled - Notepad", "");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox