SRL Archive - OSR Help

Closing parenthesis what am I missing?


farkid

2013-05-16 22:05:09

program new;
var x,y,k:integer;
Begin
k:=0
KeyDown(16);
repeat
MoveMouse(x,y);
Wait(500);
ClickMouse(x,y,1);
k:=k+1;
Until(k:=30);//[Error] (12:15): Closing parenthesis expected at line 11
KeyUp(16);
Wait(1000);
end.

Olly

2013-05-16 22:06:32

(k = 30)

your doing := which is used to set the var.

program new;

var
x,y,k:integer;

begin
k := 0;
KeyDown(16);

repeat
MoveMouse(x,y);
Wait(500);
ClickMouse(x,y,1);
k:=k+1;
Until(k = 30);

KeyUp(16);
Wait(1000);
end.

farkid

2013-05-16 22:09:48

Thanks I knew it was something simple but my eyes couldn't catch it.