Results 1 to 2 of 2

Thread: Taking a screenshot of a specific area

  1. #1
    Join Date
    Mar 2012
    Location
    Over there
    Posts
    840
    Mentioned
    4 Post(s)
    Quoted
    42 Post(s)

    Default Taking a screenshot of a specific area

    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. :/
    Last edited by Total; 04-15-2012 at 12:13 AM.

  2. #2
    Join Date
    Jul 2008
    Location
    NSW, Australia
    Posts
    881
    Mentioned
    0 Post(s)
    Quoted
    3 Post(s)

    Default

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


    Simba Code:
    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.

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •