Difference between revisions of "FindWindow"

From SCAR Divi Manual
Jump to: navigation, search
Line 5: Line 5:
  
 
==Availability==
 
==Availability==
SCAR Divi 3.00 > Current
+
SCAR Divi 3.00 > 3.35
  
 
==Description==
 
==Description==
Line 24: Line 24:
 
*[[FindWindowBySize]]
 
*[[FindWindowBySize]]
  
[[Category:Functions]]
+
[[Category:Deprecated Functions]]
[[Category:Client Functions]]
 

Revision as of 03:03, 25 July 2012

Definition

function FindWindow(Title: AnsiString): Boolean;

Availability

SCAR Divi 3.00 > 3.35

Description

Finds a window with the title specified by Title and if found sets it as the selected client window. Returns true if the window was found.

Example

begin
  if FindWindow('Untitled - Notepad') then
    WriteLn('Found notepad')
  else
    WriteLn('Didn''t find notepad');
end.

See Also