FindWindows

From SCAR Divi Manual
Revision as of 21:39, 18 October 2013 by Freddy (talk | contribs) (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