Procedure GetPick;
SCAR Code:
begin
FindDtm(Pick, x, y, MIX1,MIY1,MIX2,MIY2);
mouse(x, y, 5, 5, true);
wait(300);
end;
This is from http://www.villavu.com/forum/showthr...=32990?t=35731
Search If statements on that link and it will take you to it.
also
SCAR Code:
Procedure GetPick;
begin
if( FindDtm(Pick, x, y, MIX1,MIY1,MIX2,MIY2)) then // This is how If statements are declared If….. Then
begin // We want to execute an entire chunk of code not just one line. One line would suffice, but for the purposes of this.
mouse(x, y, 5, 5, true);
writeln(‘Pick found’);
wait(300);
end;
end;
If it doesn't find DTM's facing south (which it should) you can do
It makes the compass face north, if you replace n with s it will be south, e =east ect.