Was just wondering from a design and standrads point of view is it ok to Free a bitmap in a loop like in the example, so it saves me having to free every bitmap on its own line.
Simba Code:for i := 0 to GetArrayLength(Rune) do
begin
if FindBitmapToleranceIn(Rune[i].BMP, x, y, MSX1, MSY1, MSX2, MSY2, 15) then
begin
Mouse(x, y, 7, 7, true);
Wait(RandomRange(150, 250));
ClickMouse2(true)
if IsUpTextMultiCustom([Rune[1].Uptext + Rune[3].Uptext]) then
ClickMouse2(true);
FreeBitmap(Rune[i].BMP);
Break;
end;
end;


Reply With Quote





