FindWindows

From SCAR Divi Manual
Revision as of 19:55, 7 August 2012 by Freddy (talk | contribs) (Created page with "==Definition== <source lang="scar" lines="false"> function FindWindows(const Title: string): THwndArray; </source> ==Availability== SCAR Divi 3.35 > Current ==Description== ...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function FindWindows(const Title: string): THwndArray;

Availability

SCAR Divi 3.35 > Current

Description

Finds all windows that have the title specified by Title. The title is case-sensitive! An extended version of this function is available as FindWindowsex.

Example

var
  Wnds: THwndArray;
  Idx, Len: Integer;

begin
  Wnds := FindWindows('Untitled - Notepad');
  Len := Length(Wnds);
  for Idx := 0 to Len - 1 do
    WriteLn(Wnds[Idx]);
end.

See Also