Quazz
2013-01-04 18:21:21
I'm having problems doing basic things like finding an ore rock based on colour and clicking it.
I'm using this code:
Write now, all it does is move the cursor around a bit, stopping on trees (maybe the colour thing is working), but only clicks at the end.
What do I do?
I'm using this code:
program FindColorExample;
{$i srl/srl.simba}
procedure ClickTree;
var
x, y : Integer;
begin
if FindObjCustom(x, y, ['hop', 'own'], [2840186, 2708084], 5) then
begin
Writeln('Found tree!');
Mouse(x, y, 0, 0, True);
end else
Writeln('Couldn''t find the tree.');
end;
begin
ClearDebug;
SetupSRL;
Clicktree;
end. Write now, all it does is move the cursor around a bit, stopping on trees (maybe the colour thing is working), but only clicks at the end.
What do I do?