DarkEdge975 Posted October 26, 2011 Share Posted October 26, 2011 program New; var ColorCheck: Integer = <1769463>; var CheckX: Integer = <200>; var CheckY: Integer = <250>; var ClickX: Integer = <1200>; var ClickY: Integer = <900>; var Check_Wait: Integer = <250>; begin repeat if(1 <> 2)then begin wait(Check_Wait) if (GetColor(CheckX,CheckY) = ColorCheck) then begin ClickMouse(ClickX,ClickY, True); end; end; until(1 = 2); end. Getting a compile error. Saying line 2 has a expected semicolon (";") I think I am doing it right. But am not sure at all. I eventually want to turn it into a script that knows the image its supposed to be watching and when it changes color it clicks instantly. Quote Link to comment Share on other sites More sharing options...
FHannes Posted October 26, 2011 Share Posted October 26, 2011 Not sure where you got the idea that syntax would work... SCAR Divi doesn't allow variable initialization and I have no idea what the deal is with the <> surrounding the integers... [scar]program New; const ColorCheck = 1769463; CheckX = 200; CheckY = 250; ClickX = 1200; ClickY = 900; Check_Wait = 250; begin repeat if(1 <> 2)then begin Wait(Check_Wait) if (GetColor(CheckX, CheckY) = ColorCheck) then begin ClickMouse(ClickX, ClickY, True); end; end; until(1 = 2); end.[/scar] Quote Link to comment Share on other sites More sharing options...