man... i tryed ur procedures and lagged too much!! here is what i did, inspired by charmz
SCAR Code:
function FindCText(txt: string): Boolean;
var
Chat: string;
begin
if IsTextInAreaEx(40, 415, 130, 415, x, y, ':', 0, SmallChars, False, True, 0, 0, 0) then
begin
Chat := Lowercase(Trim(GetTextAtEx(x + 8, 415, 0, SmallChars, False, False, 0, 1, 16711680, 40, False, tr_AllChars)));
if Pos(txt, Chat) <> 0 then
begin
Result := True;
end;
end;
end;
thing is it finds text in like 3 line in the chat box? what do i need to change to get it to find it in first line when just up to username?