Results 1 to 6 of 6

Thread: Scar doesn't repeat?

  1. #1
    Join Date
    Oct 2007
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Scar doesn't repeat?

    Hi,
    i was making this scar script but somehow it wouldn't repeat, or stop repeating after a couple of times.
    SCAR Code:
    program Test;

    var
    x,y: Integer;

    const
    green= 65280;

    begin
    Wait(2000+random(3000));
    repeat
    Writeln('1');
    ClickMouse(94, 243,true);
    Writeln('2');
    Wait(1000+random(30000));
    Writeln('3');
    until(FindColor(x,y,green,889, 340,952, 463));
    Writeln('4');
    end.

    I added the writeln to find out where it stops and this is what the log shows:

    Code:
    Successfully compiled (83 ms)
    1
    2
    3
    1
    2
    3
    1
    2
    3
    1
    2
    Successfully executed
    So it repeats a couple of times but then it just stops, why does it stop?
    Can someone help me with this.

  2. #2
    Join Date
    Aug 2007
    Location
    in a random little world
    Posts
    5,778
    Mentioned
    0 Post(s)
    Quoted
    7 Post(s)

  3. #3
    Join Date
    Oct 2007
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I run the script on a acer laptop;
    3GB ram, Intel Duel Pentium CPU T2390 @1.86GHz

    I found out it runs smooth when i use small numbers for the wait, but it just when i want it to wait for 30 minutes. Someone knows how to bypass this? Im gonna try to put alot of small waits in it now.

  4. #4
    Join Date
    Sep 2006
    Location
    include srl/srl.scar ( aussie)
    Posts
    2,875
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    it stops ofc because of this

    until(FindColor(x,y,green,889, 340,952, 463));
    if you want it 4 ever just do until false...

  5. #5
    Join Date
    Oct 2007
    Posts
    15
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    I know, i want it that way. The problem is that it didn´t found the color but just stopped. If you look at the script it should write a 4 when it founded the color but it didn´t.

  6. #6
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    Maybe your ClickMouse(94, 243,true); clicks the 'X' on SCAR? :P

    Or your power settings are set to Standby after a small amount of time, that could also be a problem.


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Repeat?
    By FortAsh in forum OSR Help
    Replies: 9
    Last Post: 01-13-2009, 04:18 PM
  2. How do I get this to repeat until?
    By Claymore in forum OSR Help
    Replies: 2
    Last Post: 07-07-2008, 04:02 PM
  3. repeat help
    By trojan in forum OSR Help
    Replies: 2
    Last Post: 06-15-2007, 03:54 PM
  4. repeat somewhere help thx
    By rkroxpunk in forum OSR Help
    Replies: 4
    Last Post: 03-12-2007, 08:24 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •