farkid
2013-04-28 06:25:06
I am trying to get my script to repeat the Procedure 10 times and then stop.
program Gems;
var a:Integer;
Procedure Gem;
Begin;
a:=0
MoveMouse(772,445)
Wait(1)
ClickMouse(772,445,1)
Wait(8)
MoveMouse(729,444)
ClickMouse(729,444,1)
wait(8)
a:=a+1;
repeat
Until(a=10)
End;
begin
repeat
gem
Until (true)
end.
I thought by using a=0 at the beginning and a=a+1 it would add it up until it reaches 10 but It clicks once and stops
i'm tryig to figure out how to stop after 10.
program Gems;
var a:Integer;
Procedure Gem;
Begin;
a:=0
MoveMouse(772,445)
Wait(1)
ClickMouse(772,445,1)
Wait(8)
MoveMouse(729,444)
ClickMouse(729,444,1)
wait(8)
a:=a+1;
repeat
Until(a=10)
End;
begin
repeat
gem
Until (true)
end.
I thought by using a=0 at the beginning and a=a+1 it would add it up until it reaches 10 but It clicks once and stops
i'm tryig to figure out how to stop after 10.