seikleja112
2011-02-25 04:24:47
Hello, im new to SCAR and scripting at all and im having trouble with looping a script.
It says: Line 16: [Error] (16:1): Identifier expected in script
Please help!
And the button isnt always there, it might come up at any random time (even 10-20mins) , is this suitable for such thing?
program Clickbutton;
var
x, y: Integer;
procedure ClickColor;
begin
if FindColor(x,y, 12555099, 675, 377, 709, 389) then
begin
MoveMouseSmooth(692, 384);
Wait(100+random(200));
ClickMouse(692, 384, true);
end else
begin
end;
end;
begin
Wait(1000);
ClearDebug;
ClickColor;
end.
It says: Line 16: [Error] (16:1): Identifier expected in script
Please help!
And the button isnt always there, it might come up at any random time (even 10-20mins) , is this suitable for such thing?