LordJashin
2012-03-01 01:35:21
How would I set this up for a different application? Does anyone know where the text versions are of simba's .dll extensions? For Smart it works like this:
Then you can use Draw Bitmap:
Just confused on setting the handle. Want to set it to a different application, not using smart. Ive tried this so far:
var
SMART_Canvas: TBitmap;
SMART_DebugSetup: Boolean;
(*
SMART_SetupDebug
~~~~~~~~~~~~~~~~
.. code-block:: pascal
procedure SMART_SetupDebug();
Declares the SMART_Canvas bitmap. Does not need to be called in scripts as it's
called in the SMART_ functions automatically.
.. note::
Author: Coh3n
Last Modified: Unknown
Example:
.. code-block:: pascal
if (not SMART_DebugSetup) then
SMART_SetupDebug();
*)
procedure SMART_SetupDebug();
begin
SmartSetDebug(True);
SMART_Canvas := TBitmap.Create;
SMART_Canvas.canvas.handle := SmartGetDebugDC;
SMART_DebugSetup := true;
end;Then you can use Draw Bitmap:
CleanBMP := BitmapFromString(Area.X2-Area.X1, Area.Y2-Area.Y1, '');
DrawBitmap(CleanBMP, SMART_Canvas.Canvas, Area.X1, Area.Y1); Just confused on setting the handle. Want to set it to a different application, not using smart. Ive tried this so far:
var
TB : TBitmap;
TB := TBitmap.Create;
FindAndSetTarget('Free', true);
TB.Canvas.Handle:= GetImageTarget;
GetClientDimensions(w, h);
DrawBitmap(Bmp, TB.canvas, w - 1, h - 1);