Try writing it like this:
Simba Code:
Procedure eatFood;
begin
Trout := DTMFromString('');
writeln('DTM');
If FindDTM(Trout, X, Y, MIX1, MIY1, MIX2, MIY2) Then
WriteLn( 'Eat food');
MMouse(x, y, 7, 7);
writeln('Moved Mouse');
if isUpText('rout') Then
writeln('Clicking.');
Mouse(x, y, 0, 0, true);
end;
If you do it like this, it should locate the place where the error is by the text in the debug.
And just in case, You could also just use my DTM for trout, which seems to work 100% of the time for me.. Which is:
Simba Code:
Trout := DTMFromString('mrAAAAHichcrBCkBAFIXhf2SkeWimZCGzk9eUNRt/yRK3vtPpdFvgiJAaqHXad23x7rhNAQZ1yipatWjWmHsfq1fJ/BJ+PHcBzDoLSw==');