question about scar

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

question about scar
  1. Unread #1 - Sep 17, 2007 at 1:07 PM
  2. i-joost
    Joined:
    Sep 17, 2007
    Posts:
    5
    Referrals:
    0
    Sythe Gold:
    0

    i-joost Newcomer

    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
     
  3. Unread #2 - Sep 17, 2007 at 2:32 PM
  4. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    question about scar

    Code:
    Repeat
      MyProcedure
    Until (MyBoolean = true);
     
  5. Unread #3 - Sep 17, 2007 at 3:37 PM
  6. i-joost
    Joined:
    Sep 17, 2007
    Posts:
    5
    Referrals:
    0
    Sythe Gold:
    0

    i-joost Newcomer

    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.
     
  7. Unread #4 - Sep 17, 2007 at 4:48 PM
  8. Town
    Joined:
    Jan 21, 2007
    Posts:
    3,776
    Referrals:
    3
    Sythe Gold:
    5

    Town Grand Master
    Scar Programmers

    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.
     
  9. Unread #5 - Sep 18, 2007 at 6:34 PM
  10. i-joost
    Joined:
    Sep 17, 2007
    Posts:
    5
    Referrals:
    0
    Sythe Gold:
    0

    i-joost Newcomer

    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 >

Users viewing this thread
1 guest


 
 
Adblock breaks this site