You mean like to see if it stopped cutting?
http://villavu.com/forum/showthread.php?t=74090
or you can use invcount
Pixel shift function:
Simba Code:
Function IsCutting: Boolean;
begin
var
PBox: TBox;
begin
PBox := IntToBox(245, 130, 285, 195);
Result := (AveragePixelShift(PBox, 250, 500) > 400);
end;
end;
Simba Code:
PBox := IntToBox(245, 130, 285, 195);
Is were it is looking for moving pixels
Simba Code:
Result := (AveragePixelShift(PBox, 250, 500) > 400);
This:
means it returns true if there are more then 400 pixels moving in that area.
so to detect when you could stop chopping you could do something like
Simba Code:
while IsCutting do
wait(100)