Simba Code:
procedure Log;
begin
repeat
if P07_FindObjCustom(x,y, ['Log'], [604509, 601162], 5) Then
BEGIN // u forgot begin and end;
Mouse(x,y, 2, 2, false); // no need for random(2), it is all random
writeln('UpText found...');
wait(500);
END;
until(false)
end;
If u have multiple actions for an if then ... statement. We use a begin end;
if it's only ONE action. Then u do NOT need a begin end;
example:
Simba Code:
if P07_FindObjCustom(x,y, ['Log'], [604509, 601162], 5) Then
Writeln('found it') // Only one action, no need for a new begin end;
Simba Code:
if P07_FindObjCustom(x,y, ['Log'], [604509, 601162], 5) Then
begin // Multiple actions for the if then... we need a begin end;
Writeln('Found it')
Mouse(x, y,2,2, mouse_right);
end;
For your Color issue: use Autocolor aid.
Found here: http://villavu.com/forum/showthread....t=autocoloraid
Tutorial on how to use it here: http://villavu.com/forum/showthread.php?t=71074