Olly
2014-10-21 13:39:18
- Follows the target window including minimizing/maximizing
- Will only be on top of the target window - you can bring a window on top of the layer without any issues
- Auto paint option, if enabled will automatically draw the image every 35ms using much less CPU than SMART.
Finally here is a script you can test with, it will draw on what you have set Simbas target as:
{$loadlib libMufasaLayer}
var
Layer: TMufasaLayer;
procedure SetupLayer;
var
W, H: Integer;
begin
GetClientDimensions(W, H);
Layer.Init(GetNativeWindow, True, PluginPath);
Layer.Bitmap.Init(Client.getMBitmaps());
Layer.Bitmap.SetPersistentMemory(PtrUInt(Layer.GetBitmapPtr(W, H)), W, H);
AddOnTerminate('FreeLayer');
end;
procedure FreeLayer;
begin
Layer.Bitmap.Free;
Layer.Free;
end;
begin
SetupLayer;
while True do
begin
Layer.Bitmap.DrawClear(0);
Layer.Bitmap.Rectangle(IntToBox(20, 80, 200, 200), Random($FFFFFF));
Layer.Bitmap.DrawSystemText('The time is: ' + FormatDateTime('ttt', Now),
'Arial', 40, Point(20, 20), False, Random($FFFFFF));
Wait(500);
end;
end.Source: https://github.com/Olly-/mLayer
