SCAR Code:
Function SuccessFullClick(mousex, mousey, ranx, rany: Integer; left: Boolean): Boolean;
var
a, b, c: Integer;
begin
MMouse(mousex, mousey, ranx, rany);
Wait(60 + Random(30));
GetMousePos(b, c);
HoldMouse(b + 1, c, left);
repeat
Wait(20 + Random(30));
a := a + 1;
until (a > 4);
GetMousePos(b, c);
ReleaseMouse(b, c, left);
If(FindColor(b, c, 255, b-10, c-10, b+10, c+10))Then //line 704
Result:= True;
End;
Code:
[Runtime Error] : Exception: Canvas does not allow drawing in line 704 in script
i know that it has to do a negative number in
SCAR Code:
If(FindColor(b, c, 255, b-10, c-10, b+10, c+10))
so i will have to change how the variables are declared but i cant not see what is returning as a negative so im not to sure what to change
any help or ideas would be appreciated