
Originally Posted by
Hexless
how do i do tht im new to this :\
I think this is the base function. (I used function list to search)
So edit this: (I hope the fonts don't need changing )
Simba Code:
function GetChatBoxText(Line, TextCol: Integer): string;
var
P: TPoint;
cArr: TPointArray;
B: TBox;
begin
Result := '';
P := TextCoords(Line);
if (FindColorsTolerance(cArr, TextCol, MCX1, P.y, MCX2, P.y + 13, 0)) then
begin
B := GetTPABounds(cArr);
result := Trim(GetTextAtExWrap(b.x1-1,p.y,B.x2+1,p.y+13,0,5,2,TextCol,0,SmallChars));
end;
end;
Or simply use GetTextAtExWrap()