I've been trying to get it working but I've never used it before :S
Can anyone show me an example of it that actually works? You'd be!
I've read the SRL manual but I just need an example ^^.
I've been trying to get it working but I've never used it before :S
Can anyone show me an example of it that actually works? You'd be!
I've read the SRL manual but I just need an example ^^.
Ce ne sont que des gueux
this should teach you
if it doesn't pm me(on msn, AIM, or IM)
SCAR Code:{*******************************************************************************
function GetChatBoxText(Line, TextCol: Integer): string;
By: ZephyrsFury
Description: Gets text on the line Line with colour TextCol. (Line 1 is the top,
Line 8 is the bottom line).
Colours:
clMessage/clBlack - Black text messages ("Oh Dear you are dead", etc).
clChat/clBlue - Chat messages from you and other players.
clTrade/clPurple - Colour of trade request text.
clFriend - Colour of friend and clan chat.
Works with other colours too.
*******************************************************************************}
function GetChatBoxText(Line, TextCol: Integer): string;
var
P: TPoint;
cArr: TPointArray;
B: TBox;
begin
P := TextCoords(Line);
if (FindColorsTolerance(cArr, TextCol, MCX1, P.y, MCX2, P.y + 13, 0)) then
begin
B := GetTPABounds(cArr);
Result := Trim(GetTextAtEx(B.x1 - 1, B.y1 - 2, 0, SmallChars, False, False,
0, 1, TextCol, 80, False, tr_AllChars));
end;
end;
To as the (x, y) coords you pick the top-x and top-y ones.
Ce ne sont que des gueux
so you understand?
*just woke up*
Yes! I do
Thanks mate
+repped you
Ce ne sont que des gueux
Sure, np, btw i just copy/pasted from an srl include![]()
Yeah but you took time to find it for me and that's enough ;3
Ce ne sont que des gueux
yeah... but i did this:
SCAR Code:function HelpOutOnForums : boolean;
begin
tooLong := 60000;
readPosts;
z := getSystemTime;
While not(find) do
begin
lookInIncludes;
If getSystemTime - z > toolong then BREAK;
end;
Result := find;
end;
it just so happened that i did it in less then 1 min![]()
There are currently 1 users browsing this thread. (0 members and 1 guests)