Simba Code:
function MockUpOperate: Boolean;
var
ExplorerBitmap, x, y, H, i: Integer;
TPA: TPointArray;
ATPA: Array of TPointArray;
begin
ExplorerBitmap := BitmapFromString(5, 5, 'alsjfa;lsjfa;lsfja');
if FindBitmapToleranceIn(ExplorerBitmap, x, y, MIX1, MIY1, MIX2, MIY2, 4) then
begin
MMouse(x, y, 15, 15);
if WaitUptext('plorer', 800) then
begin
ClickMouse2(False);
Result := WaitOption('bbage', 800);
end else
begin
Result := False;
Exit;
end;
end else
begin
Writeln('couldn''t find ring bitmap, attempting TPA');
if not FindColorsTolerance(TPA, 123456, MIX1, MIY1, MIX2, MIY2, 7) then
begin
Result := False;
Exit;
end;
ATPA := TPAtoATPAEx(TPA, 15, 15);
H := High(ATPA);
for i := 0 to H do
begin
MMouse(x, y, 15, 15);
if WaitUptext('plorer', 800) then
begin
ClickMouse2(False);
Result := WaitOption('bbage', 800);
if Result then
Break;
end;
end;
end;
end;