Well bascaily to find a bitmap you would do something like this:
Save a picture as a bitmap (.bmp) preferable with 32bit color.
Then in scar, go to Script> Picture to string
And click open and navigate to your picture.
After you click ok, i should generate some code like this:
Take:= BitmapFromString(17, 1, 'z78DA7373C30E4C5D4C4' +
'D4CCC914964590330205E3D0029471957');
Notice the bitmap is small (17 X 1). The smaller it is, the less it will lag and faster it will be.
To view that bitmap go to
Script> String to Picture>
For Width but 17 and Height put 1.
And copy/paste
SCAR Code:
z78DA7373C30E4C5D4C4' +
'D4CCC914964590330205E3D0029471957
into the large box.
(Just to see the pic)
This happens to be a small slice of the "Take" option when you right click on runescape.
To use this in a script you could so soemthing like:
SCAR Code:
var
x,y,take:Integer;
Procedure LoadBitmaps;
Begin
Take := BitmapFromString(17, 1, 'z78DA7373C30E4C5D4C4' +
'D4CCC914964590330205E3D0029471957');
end;
Function FindTake:Boolean;
Begin
If FindBitmap(Take,x,y) Then
Begin
Result:=True;
Writeln('Yay we found it!');
end else
Begin
Writeln('Boo, cant find bitma');
Result:=False;
end;
end;
begin
ActivateClient;
LoadBitmaps
FindTake
end.
If you open scar and press F1, it links to a site with most of the SCAR functions,
Just Pres Crrl+F
and type "Bitmap"
and look though some of the other bitmap procedures.
Also if you want to learn about DTMs read my WONDERFUL Tut
Link:
http://www.srl-forums.com/forum/show...ghlight=yohojo