• Log in or sign up for an account here: https://www.sythe.org/login

question about scar

i-joost

Newcomer
Joined
Sep 17, 2007
Sythe Gold
0
Messages
5
Location
Holland
I'm very new with scar, I've read the Biginners TUT But i have a little question.


My question: I have a peace of Script that I want to repeat, can I make this peace of script in 1 word or some???
then i don't have to Copy and Cut it again?

The peace of script does only exist of MouseClicks




Ps:
I'm dutch so i don't write English very well :p
 
Code:
Repeat
  MyProcedure
Until (MyBoolean = true);
 
but if i have a script: like this (in real mutch bigger)

begin

ClickMouse(62,818,true);
ClickMouse(786,76,true);

And i want to repeat that part^^

After this one ---->>> MouseClick (83,612,true); but the x and y changes all the time some like this:

begin

ClickMouse(62,818,true);
ClickMouse(786,76,true);

MouseClick (833,612,true);
end;
ClickMouse(62,818,true);
ClickMouse(786,76,true);

MouseClick (586,583,true);
end;
ClickMouse(62,818,true);
ClickMouse(786,76,true);

MouseClick (655,492,true);
end;
ClickMouse(62,818,true);
ClickMouse(786,76,true);

MouseClick (295,221,true);
end;
end.
 
Code:
// var
//  j: Integer;

begin
  repeat
    ClickMouse(62,818,true);
    ClickMouse(786,76,true);
    // j := j + 1;
  until (false); // Can be adjusted to Until (j > 5), etc
end.

Work with that.
 
Thx man!!! ur very helpfull!

but now an other problem...(with an other script)
how to end my whole script if i do end. then it say's

Line 251: [Error] (251:4): Identifier expected in script

how to end my script????
 
Runescape Gamblingrunescape gambling
Back
Top