Alligaattor
2014-03-11 11:12:16
Okay so I've tried the following and none worked :(
FindBitmap (no chance… there is color changes each time the screen appears)
FindBitmapToleranceIn (had to rise the tolerance up to 525 until simba found the bitmap.. but at that tolerance it finds the bitmap even if it's not in the screen)
FindDeformedBitmapToleranceIn (used paint selection tool around a letter, painted the background black but didn't work)
What should I do?
FindBitmap (no chance… there is color changes each time the screen appears)
FindBitmapToleranceIn (had to rise the tolerance up to 525 until simba found the bitmap.. but at that tolerance it finds the bitmap even if it's not in the screen)
FindDeformedBitmapToleranceIn (used paint selection tool around a letter, painted the background black but didn't work)
What should I do?
program new;
{$i SRL-6/SRL.simba}
var
bmp,x,y,i,z,u : integer;
procedure bmps;
begin
Bmp := BitmapFromString(25, 40, 'meJzdlstPE0EYwK+W0u5CImF3tg' +
'1oTLcHo3+Mhz14KIlHPEEMGBIwkaJ9bAvbtJTtRnxcTIyPeJBEYlS' +
'iFw+1nIwXERNDfVGNAgFa/Potu52+ty1e3Pwy+TLz9bcz881O2uvW' +
'et1aj0vrJpqd1xxE63EXW4grsHHzNi6BQQJiO5+ycfFjXEynm59jh' +
'YRTSDoFjRE01gWtaieQr5Z74FfzXXwSAA8GarWKIYqDxBwkybqSxw' +
'dVXkz1iyon3uC9t4j3Du+9icHtYo+4CK0xCv2L/ZjMDoBcAZWTzJp' +
'IQ4/TmexBK0+hcDA2teKgJJ2oxq+8dDZTQVo+X2jM/n5hbPJFY9Xe' +
'Xn7906+3q1mT9OoXgO4pdmayF4aXnCSK1Fb92Ny+OLpc8a7qPUGiD' +
'B8EWlJRzjk7rxhmmI+MtKOC0neVVDWwrqpD9OhUkSNVHZayQ5VeR4' +
'YPgU0aepTObHSgCiBgC0u+B9ZUEWNbZGNRMp6ugGmTfPdN1WZuZ3T' +
'iORETRIwjpUDwKMQTgxiCvhNzjBDFRUVMD8SS76Gpgg/n88bvd++/' +
'N2bS/2rw9IK+1dSsQvSsLD7xVPrUWVVfLKUK/CMV3DBbW7uwYxTbC' +
'N2zE1benDyzUF7BShVWcEkvFhTXOHuyvsPYGcIec7TurHRVMY2XMV' +
'nG5DCkoUrGSkVxNKi/opkqgJ4IHrzDNEoV0eXV1FEFaQ+lqjHUTFU' +
'JpaqLZZVcb12tqqzwX6pYzs/wMx2owmY1UXWtWgWf26WJZZdntiGK' +
'4In1DZiXHniuI2Uq+DPw9duftY+5hvz8sJYbHnlCTXKG5a6CrY1LB' +
'i6Qy1PPKA+s0Q+t5LvXiYrlpvWdh4mdO3935fW6cS9ZAqozMv6U2i' +
'u/vsC2T1HVrKbNUrYJ5y+pqIPRBn8BCoZx7Q==');
end;
procedure check;
begin
if FindBitmapToleranceIn(bmp,x,y,680,529,775,606,525) then
begin
writeln('bitmap found');
i:=i+1;
end else
begin
writeln('did not find bitmap');
z:=z+1;
end
end;
begin
i:=0;
z:=0;
u:=0;
bmps;
repeat
check;
u:=u+1;
until(u=100);
Writeln('did not find ' + tostr (z) + ' times.');
Writeln('did find ' + tostr (i) + ' times.');
end.



