Core Function WinKill

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
(Created page with "<pre> WinKill ( <title>, <text> ) </pre> === Description === Forces a window to close. === Parameters === ==== Title ==== The title of the window. === Return Value === Non...")
 
(Remarks)
Line 21: Line 21:
 
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.
 
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 explorer windows) can only be terminated using WinClose.
+
Although WinKill can work on both minimized and hidden windows, some windows (notably Windows Explorer) can only be terminated using WinClose.
  
See "WinTitleMatchMode" in [[Core Function Opt|Opt]]
+
See "WinTitleMatchMode" in [[Core Function Opt|Opt]].
  
 
=== Example ===
 
=== Example ===

Revision as of 12:39, 28 November 2011

WinKill ( <title>, <text> )

Contents

Description

Forces a window to close.

Parameters

Title

The title of the window.

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