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
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
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
Maybe a canvas? The debug box thing.
Awkward what function or procedure would I use to do so.
1 sec, i have the functions somewhere.. they are made by bumblebee, not meand 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
dont understand that at all, but im gessing i would ahve to use canvas?
There are currently 1 users browsing this thread. (0 members and 1 guests)