SRL Archive - OSR Help

Taking a screenshot of a specific area


Total

2012-04-14 19:04:10

I would like my script to save a screenshot of the on screen proggy when it ends using AddOnTerminate but I'm not sure of any procedures to take a screenshot. I see one named SaveScreenShot but the only parameters are file name, so I think it takes a picture of the whole screen and I have no clue where it saves the file. Any ideas?

Well I found out how to take a screenshot of the screen, but it only takes a screenshot of the runescape screen and not the SMART screen so it doesn't get the paint in the pic. :/

Sir Ducksworthy

2012-04-15 18:17:01

Here I just whipped this up you can use it but give me credit of course.

program new;
{$i srl/srl.simba}

var
BMP:integer;
Store:string;
begin
SetupSRL;
BMP:=BitmapFromString(594,255,Createbitmapstring(BMP));
CopyClientToBitmap(BMP,302, 125,896, 380);
DrawBitmapDebugImg(BMP);
SaveBitmap(BMP, SRL_SavePath + 'ProggyShot_' + Timerunning + '.bmp');
FreeBitmap(BMP);
end.