FindWindowTitlePart

From SCAR Divi Manual
Revision as of 12:10, 25 July 2012 by Freddy (talk | contribs)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

Definition

function FindWindowTitlePart(Title: AnsiString; CaseSensitive: Boolean): Boolean;

Availability

SCAR Divi 3.00 > 3.34

Description

Finds a window with it's title containing a certai part specified by Title and if found sets it as the selected client window. If CaseSensitive is true, it will search perform a case sensitive search. Returns true if the window was found.

Example

begin
  if FindWindowTitlePart('Notepad', False) then
    WriteLn('Found notepad')
  else
    WriteLn('Didn''t find notepad');
end.

See Also