Core Function WinExists

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
m (1 revision)
 
(2 intermediate revisions by one user not shown)
Line 19: Line 19:
 
=== Return Value ===
 
=== Return Value ===
  
Returns the window's HWND if the window exists, otherwise returns 0.
+
Returns 1 if the window exists, otherwise returns 0.
  
 
=== Remarks ===
 
=== Remarks ===
 +
 +
WinExist will return 1 even if a window is hidden.
  
 
See "WinTitleMatchMode" in [[Core Function Opt|Opt]]
 
See "WinTitleMatchMode" in [[Core Function Opt|Opt]]

Latest revision as of 12:38, 14 June 2015

WinExists ( <title>, <text> )

Contents

Description

Checks to see if a specified window exists.

Parameters

Title

The title of the window.

Text

Optional; The text of the window to read.

Return Value

Returns 1 if the window exists, otherwise returns 0.

Remarks

WinExist will return 1 even if a window is hidden.

See "WinTitleMatchMode" in Opt

Example

If ( WinExists("Untitled -") )
    MsgBox("Window exists");
Personal tools
Namespaces
Variants
Actions
Navigation
Toolbox