werdna Posted October 25, 2015 Share Posted October 25, 2015 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. Quote Link to comment Share on other sites More sharing options...
Wanted Posted October 26, 2015 Share Posted October 26, 2015 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) Quote Link to comment Share on other sites More sharing options...