function CheckItOut:boolean;
begin
Result := true;
if FindWindow('ExampleName', nil) = 0 then exit;
if not FindWindow('ExampleName', nil) = 0 then
begin
Result := True;
showmessage('true');
end;
end;
Maybe you're looking for the window title? Your code looks for the window class name. Check out the documentation of FindWindow. Probably you need to swap the parameters.