SRL Archive - OSR Help

I need help with RS Text Bitmap's


Sir Ducksworthy

2012-03-21 19:56:55

Grr Ive basically finished my Gnome Agility Course Runner that.. was the easy part..
Now I'm having a seriously hard time trying to read ChatText,

For example I want to read this,

I tried using all the right variables with them
GetChatBoxText();
FindChatBoxText();
etc etc

So then I tried making a bitmap for it
a bit map of the …
In experience bitmaps have worked for me like when I made my own p server bot's

So I made a function to read it and everything:
 function WaitBitmapInTol(Name, x1, y1, x2, y2, Tol, WaitPerLoop, MaxTime: Integer): Boolean;
var
T: Integer;
begin
T := GetSystemTime + MaxTime;
while (GetSystemTime < T) do
begin
if(Findbitmaptolerancein(Name,x,y,x1,y1,x2,y2,Tol))then
begin
Result := True;
Exit;
end;
Wait(WaitPerLoop);
end;
end;


I need help with this majorly

Also another question?
Simba ignores the black when reading the bitmaps right, is making the text white and the back ground black and using it as a bitmapmask sopost to work?

Gucci

2012-03-21 20:30:47

If the text is black then just use FindBlackChatMessage();

Sir Ducksworthy

2012-03-21 20:49:43

It doesn't work, tried it allready

Brandon

2012-03-21 21:03:16

If you screenshot what the text is.. or what your trying to get.. I can prob help.

nickrules

2012-03-21 21:56:58

Make a function telling you what findblackchatmessage is resulting, and pick a segment of text that isn't bugged. But it does work, for sure.

In fact, here's a sample of black text I just grabbed: "you can access the squeal offortune button again by logging out and backin"

The only thing it got wrong was the spaces

e: And it IS case sensitive, just so you know.