SRL Archive - RS3 Outdated / Broken Scripts

Find Bitmap in Bitmap file


fORCE_wORKS

2007-12-12 23:05:03

i assume this can be done? i looking for a function that can search a saved bitmap file for a another bitmap.

Macrosoft

2007-12-12 23:20:43

wrong section i think…

yep, im doing something with it right now :)
just use

SetTargetBitmap(bitmap: Integer);

and then all the dtms/bitmaps you search for will be looked for in the bitmap, not the rs client

fORCE_wORKS

2007-12-12 23:24:43

thx very much.

fORCE_wORKS

2007-12-12 23:29:25

I found this in the scar manual "After calling SetTargetBitmap all functions won't be working with client but with specified bitmap." how do i make functions work with client again after calling SetTargetBitmap.

Macrosoft

2007-12-12 23:29:25

also remember to have already loaded the bitmap with:

LoadBitmap(path: string): Integer;

path is the location (c:/Program Files …)
so to set the target bitmap to bitmap "b" in location "C:/Location" do
b:=LoadBitmap('C:/Location');
SetTargetBitmap(bitmap: Integer);
remember b has to be an integer var type

Macrosoft

2007-12-12 23:31:09

lol thats what im trying to figure out, maybe ActivateClient?

fORCE_wORKS

2007-12-12 23:31:45

i think i found it. will this do it.

ResetDc;

fORCE_wORKS

2007-12-12 23:54:53

Boo-ya it total works.

ResetDc;

Macrosoft

2007-12-13 18:04:05

kk, that actually helped me out with what im doing :)