I didn't test this function, but it should work :
SCAR Code:
{*******************************************************************************
function ClickText(Text: String; x1, y1, x2, y2: Integer): Boolean;
By:
Description: Searches for text in specified area if text is found then it
clicks it
*******************************************************************************}
function ClickText(Text: String; x1, y1, x2, y2: Integer): Boolean;
var
x, y: Integer;
begin
if (IsTextInAreaEx(x1, y1, x2, y2, x, y, Text, 100, UpChars,
True, True, 0, 1, -1)) then
begin
Result := True;
Mouse(x + ((Length(Text) div 2) * 6), y + 3, 2, 3, True);
end;
end;