Jump to content
werdna

FindColorSpiral(...) Variable Expected

Recommended Posts

Can anyone tell me why on line 8(if(FindColorSpiral(...))) I am getting the error "Compiler error Line 8 Variable Expected"? I appear to be following the documention online so I cannot figure out the issue. I am using the newest version of SCAR, which I updated to today from the previous version in hope it would solve this issue.

 

program New;

var

X, Y:Integer;

begin

 

repeat

 

if(FindColorSpiral(X, Y, 2762425, 0, 0, 800, 600)) then

begin

MoveMouse(X, Y);

end;

 

Wait(10);

until(1<>1);

end.

Link to comment
Share on other sites

Don't use FindColorSpiral... just use FindColor. Spiral is if you want to start searching from a certain point and spiral outward to the first point in which case you would need

 

FindColorSpiral(StartX, StartY, X, Y, 2762425, 0, 0, 800, 600)

 

Just change what you have to

 

FindColor(X, Y, 2762425, 0, 0, 800, 600)

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
  • Create New...