Chris
2012-01-13 12:38:48
Hi, I need some help with TPA's..
I have something like this:
Now the problem is: when it cant find the bitmap the Tpoint will be (0, 0) and this will greatly affect the x, y..
Im trying to make it delete the points which are (0, 0), but I dont know how to do this..
Any ideas from the experienced scripters? :D
I have something like this:
if (FindBitmapToleranceIn(MyBMP, x, y, xs, ys, xe, ye, 15)) then
begin
BitmapsFound[0] := IntToPoint(x, y);
end;
if (FindBitmapToleranceIn(MyOtherBMP, x, y, xs, ys, xe, ye, 15)) then
begin
BitmapsFound[1] := IntToPoint(x, y);
end;
MiddleTPAEx(BitmapsFound, x, y);
Mouse(x, y, 5, 5, True);
Now the problem is: when it cant find the bitmap the Tpoint will be (0, 0) and this will greatly affect the x, y..
Im trying to make it delete the points which are (0, 0), but I dont know how to do this..
Any ideas from the experienced scripters? :D