Core Function WinExists

From Sputnik Wiki
(Difference between revisions)
Jump to: navigation, search
Line 19: Line 19:
 
=== Return Value ===
 
=== Return Value ===
  
Returns 1 if the window exists, otherwise returns 0.
+
Returns the window's HWND 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]]

Revision as of 16:08, 4 December 2011

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 the window's HWND if the window exists, otherwise returns 0.

Remarks

See "WinTitleMatchMode" in Opt

Example

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