FindWindows

From SCAR Divi Manual
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