Adblock breaks this site

question about scar

Discussion in 'Scar/Simba Help' started by i-joost, Sep 17, 2007.

  1. i-joost

    i-joost Newcomer

    Joined:
    Sep 17, 2007
    Posts:
    5
    Referrals:
    0
    Sythe Gold:
    0
    question about scar

    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
     
  2. Town

    Town Grand Master
    Scar Programmers

    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5
    question about scar

    Code:
    Repeat
      MyProcedure
    Until (MyBoolean = true);
     
  3. i-joost

    i-joost Newcomer

    Joined:
    Sep 17, 2007
    Posts:
    5
    Referrals:
    0
    Sythe Gold:
    0
    question about scar

    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.
     
  4. Town

    Town Grand Master
    Scar Programmers

    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5
    question about scar

    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.
     
  5. i-joost

    i-joost Newcomer

    Joined:
    Sep 17, 2007
    Posts:
    5
    Referrals:
    0
    Sythe Gold:
    0
    question about scar

    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????
     
< need help with this scirpt | need help with using repeat >


 
 
Adblock breaks this site