mastaraymond
2007-06-29 03:32:38
The new chatbox isn't scrolled down by default. So i just made a function that scrolls it down. I hope the color stays static, otherwise this won't work. But for me it works. This should be in 3.81 since the chatfunctions still don't work without a chatbox scoller ^^.
EDIT: Make sure you call this AFTER runescape has loaded. Otherwise the Scrollbar is not loaded yet. Below my Isloading function.
EDIT: Make sure you call this AFTER runescape has loaded. Otherwise the Scrollbar is not loaded yet. Below my Isloading function.
Function IsLoading:Boolean;
Begin;
If (GetColor(6, 35) = 16777215) and (GetColor(7,34) = 0) then Result:=true
else Result:=False;
end;
program New;
{.include srl\srl.scar}
Function FixChatBox:boolean;
begin;
if (GetColor(487, 417) = 1646629) then
begin;
Result:=true;
MMouse(488, 426,5,5);
GetMousePos(x,y);
Holdmouse(x,y,True);
While (GetColor(487, 417) = 1646629) do
Wait(200);
Wait(400+Random(200));
ReleaseMouse(x,y,True);
end;
end;
begin
SetupSrl;
//While IsLoading do
// Wait(50);
FixChatBox;
end.