Difference between revisions of "GetWindowText"

From SCAR Divi Manual
Jump to: navigation, search
(Created page with "==Definition== <source lang="scar" lines="false"> function GetWindowText(const Wnd: Hwnd): string; </source> ==Availability== SCAR Divi 3.35 > Current ==Description== Return...")
 
 
Line 16: Line 16:
 
end.
 
end.
 
</source>
 
</source>
 +
 +
Output:
 +
Program Manager
  
 
==See Also==
 
==See Also==

Latest revision as of 20:13, 7 August 2012

Definition

function GetWindowText(const Wnd: Hwnd): string;

Availability

SCAR Divi 3.35 > Current

Description

Returns the title/text of a window specified in Wnd. If the given window doesn't exist, an empty string is returned.

Example

begin
  WriteLn(GetWindowText(GetShellWindow));
end.

Output:

Program Manager

See Also