mrlewcc
2013-09-20 15:55:31

Hey I am working on a Bot which has info for a friends chat to stop people from being scammed by impostors such as "[TIP]Dont trade a non rank your money" and sometimes a rank kicks it from the Friends Chat and I am not on to switch the account when it is running on a VPS so I need it to auto switch accounts once it gets kicked I have everything up to that including switching an account after, at the moment what I have is:-
function WhiteText: String;
var
Box :TBox;
TPA :TPointArray;
begin
FindColors(TPA, clWhite, 70, 381, 672, 400);
Box := GetTPABounds(TPA);
Result := GetTextAtExWrap(Box.X1, Box.Y1, Box.X2, Box.Y2, 0, 3, 4, clWhite, 0, StatChars);
end; I think that is right to detect for the white text however I don't know if that is right and how to detect that it is kicked.
Thanks :)