Results 1 to 13 of 13

Thread: drawing

  1. #1
    Join Date
    Feb 2008
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default drawing

    would i be able to draw a bitmap in front of runescape client, at specific x,y coordinates so it would like hover above rs

  2. #2
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    if im not mistaken, you can do it, but it would mess up SCAR's color finding, and it also lags a lot, since it will have to constantly refresh

    but you can do it on SMART without lag, or messing up the color finding.
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  3. #3
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Maybe a canvas? The debug box thing.

  4. #4
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by Junkj View Post
    Maybe a canvas? The debug box thing.
    thats easy but wouldnt show up on the actual rs client
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  5. #5
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Awkwardsaw View Post
    thats easy but wouldnt show up on the actual rs client
    draw a bitmap in front of runescape client
    That would be a canvas no? Correct me if I'm wrong

  6. #6
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by Feroc1ty View Post
    would i be able to draw a bitmap in front of runescape client, at specific x,y coordinates so it would like hover above rs
    yes, but it wouldnt be able to actually hover over RS
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  7. #7
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Awkwardsaw View Post
    yes, but it wouldnt be able to actually hover over RS
    My mistake then. You can always learn something here...

  8. #8
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by Junkj View Post
    My mistake then. You can always learn something here...
    you sound like i offended you sorry if i did
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  9. #9
    Join Date
    Jan 2007
    Posts
    834
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Awkwardsaw View Post
    you sound like i offended you sorry if i did
    Not at all awkward. Making a point that you can learn stuff that other people didn't know either or need help with.

  10. #10
    Join Date
    Feb 2008
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    Awkward what function or procedure would I use to do so.

  11. #11
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by Feroc1ty View Post
    Awkward what function or procedure would I use to do so.
    1 sec, i have the functions somewhere.. they are made by bumblebee, not me and used in SMART, im sure you can use paint on the rs client as well

    e:
    SCAR Code:
    Function GetPaintBitmap(Color, sX, sY: Integer; Text: TStringArray; Dist: Integer): Integer;  //by bumblebee
    Var
       TPA: TPointArray;
       H, Q, B: Integer;
    Begin
      Result := BitmapFromString(sX, sY, '');
      For B := 0 To High(Text) Do
      Begin
        TPA := LoadTextTPA(Text[b], SmallChars, H);
        For Q := 0 To High(TPA) Do
          FastSetPixel(Result, TPA[q].x, TPA[q].y + B * Dist, Color);
      End;
    End;

    Procedure ClearSMARTCanvas; //by bumblebee, also you may need to edit stuff to work with the rs client
    Var
       BMP: Integer;
       SMARTCanvas, Canvas: TCanvas;
    Begin
      BMP := BitmapFromString(765, 503, '')
      SMARTCanvas := GetBitmapCanvas(BMP);
      Canvas := GetBitmapCanvas(BMP);
      SMARTCanvas.handle := SmartGetDebugDC;
      CopyCanvas(Canvas, SMARTCanvas, 0, 0, 765, 503, -1000, -1000, 1000, 1000);
      FreeBitmap(BMP);
    End;

    Procedure ProgressReportCanvas(X, Y: Integer);  //by bumblebee, also you may need to edit stuff to work with the rs client
    Var
       SCanvas, Canvas: TCanvas;
       BMP, Sec: Integer;
       Text: TStringArray;
    Begin
      Sec := GetTimeRunning Div 1000 + 1;
      ClearSMARTCanvas;
      BMP := BitmapFromString(765, 503, '');
      SCanvas := GetBitmapCanvas(BMP);
      SCanvas.handle := SmartGetDebugDC;
      Text := ['text'];
      Canvas := GetBitmapCanvas(GetPaintBitmap(clWhite, 765, 503, Text, 25));
      CopyCanvas(Canvas, SCanvas, 0, 0, 765, 503, X, Y, X + 765, Y + 503);
      FreeBitmap(BMP);
    End;

    begin
      Smart_Server := 20;
      setupsrl;
      SmartSetDebug(true);
      progressreportcanvas(10, 10);
    end.

    i hope you get the idea of how to do it, i cant explain it very well, especially with the actual runescape client
    Last edited by Awkwardsaw; 12-02-2009 at 09:55 PM.
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

  12. #12
    Join Date
    Feb 2008
    Posts
    517
    Mentioned
    0 Post(s)
    Quoted
    1 Post(s)

    Default

    dont understand that at all, but im gessing i would ahve to use canvas?

  13. #13
    Join Date
    May 2007
    Location
    knoxville
    Posts
    2,873
    Mentioned
    7 Post(s)
    Quoted
    70 Post(s)

    Default

    Quote Originally Posted by Feroc1ty View Post
    dont understand that at all, but im gessing i would ahve to use canvas?
    yep, pretty much sorry i cant help out much, but its better than nothing i supose
    <TViYH> i had a dream about you again awkwardsaw
    Malachi 2:3

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
  •