P07_FindObjCustom is finding the object without it being there.
Hello!
I am currently trying to make a small script that will click a interactive object, I beleive that the following code checks/hovers over the two colours ([604509, 601162]), then if the UpText is ['Log'] it will left click..
What is happening is it seems to keep on spewing out UpText found... even though it is not looking to find the 'Log' or even the colour.
Code:
procedure Log;
begin
repeat
if P07_FindObjCustom(x,y, ['Log'], [604509, 601162], 5) Then
Mouse(x,y, Random(2), Random(2), false);
writeln('UpText found...');
wait(500);
until(false)
end;
I am pretty confused, I have been looking around the forums for an answer but have not found anything.
What am I doing wrong?
Sorry for the noob question. I'm sure it'll be the first of many ;)
Thanks!