neeger
2013-07-22 13:21:16
Hey, made script to identify different bitmaps on a flash game, but later discovered that sometimes it founds it and sometimes not, so the problem seems to be that sometimes the numbers change a bit:
800% zoom:
[ATTACH=CONFIG]21947[/ATTACH]
Normal:
[ATTACH=CONFIG]21948[/ATTACH]
Pixels shifted a little, that might be the problem why it doesn't find it sometimes?
Any ideas what method I can use to successfully find it every time?
Script I used:
800% zoom:
[ATTACH=CONFIG]21947[/ATTACH]
Normal:
[ATTACH=CONFIG]21948[/ATTACH]
Pixels shifted a little, that might be the problem why it doesn't find it sometimes?
Any ideas what method I can use to successfully find it every time?
Script I used:
program birmap;
{$i srl/srl.simba}
Var //Variables are declared here
blk2, blk3, blk4, blk5, blk6, blk7, blk8, blk8, blk9, blk10:Integer;
begin
cleardebug;
MouseSpeed := 19;
blk3 := BitmapFromString(6, 11, 'meJx79OiRhcX3np7XDx48uH///r1' +
'794AkA8P//Px3d8Hgzp075ubfgCLS0r/MzL6ZmX0FIiAXDS1a9BBI' +
'BgR8WLDgganpF17eP9euXQOKZGW92rnzJpCRmfniypUrEIaJyWcpq' +
'Z+HD1+6ePEiUATIBZKNjQ/PnTt3/vx5iIFqal/PgMHZs2chIjNn3j' +
'gDA8bGn3x8XsO5ACjNcpI=');
if (FindBitmapToleranceIn(red4, x, y, 0, 0, 700, 700, 80)) then
begin
Writeln('Found red 4')
Mouse(x, y, 5, 5, 0);
end;
FreeBitmap(blk3);
End.