Results 1 to 6 of 6

Thread: My script slows my computer down....ALOT

  1. #1
    Join Date
    Nov 2007
    Location
    UK
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default My script slows my computer down....ALOT

    SCAR Code:
    program New;
    {.include srl/srl.scar}
    var x,y: integer;
    procedure GoToColor;
    begin
    repeat
    disguise('avast antivirus')
    If(FindColor(x,y, 5133667 , 495, 166 , 991, 478))then
      begin
        clickmouse(x,y, true);
        end else
        begin
        writeln('Didnt find it')
        wait(3000+random(500))
        end;
        until(iskeydown('a'))
    end;
    begin
    gotocolor
    cleardebug
    writeln(timerunning)
    end.
    Ok, there is my script and when i use it my computer slows down. I want to know an easier way for my computer. So, feel free to post suggestions!
    ---Wade007

  2. #2
    Join Date
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Add a wait to the loop.

    SCAR Code:
    program New;
    {.include srl/srl.scar}

    Var X, Y: Integer;

    procedure GoToColor;
    begin
      repeat
        disguise('avast antivirus')
        If(FindColor(x,y, 5133667 , 495, 166 , 991, 478))then
        begin
          clickmouse(x,y, true);
        end else
        begin
          writeln('Didnt find it')
          wait(3000+random(500))
        end;
        Wait(50);
      until(iskeydown('a'))
    end;

    begin
      SetupSRL;
      GoToColor;
      ClearDebug;
      Writeln(IntToStr(TimeRunning));
    end.

    You need SetupSRL too.

    Also, I recommend not using this script, ClickMouse and MoveMouse get you banned, use Mouse(X, Y, RandomX, RandomY, Left) for clicking and MMouse(X, Y, RandomX, RandomY) for moving.

  3. #3
    Join Date
    Nov 2007
    Location
    UK
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Thank you, i didn't know that clickmouse could get you banned... Thanks!...better go check my message centre lol...

  4. #4
    Join Date
    Jul 2007
    Location
    Players[CurrentPlayer].Loc:='Bank'
    Posts
    875
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    kinda offtopic here. Why do people use the keydown a?
    Quote Originally Posted by sirlaughsalot
    .... Obama had the devil jump out of his ass, run and stab Hillary in the back...
    ILMMTYAEAFHPY.

  5. #5
    Join Date
    Nov 2007
    Location
    UK
    Posts
    242
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Sometimes I use it to stop my scripts.

  6. #6
    Join Date
    Jul 2007
    Location
    America
    Posts
    421
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yeah, if you have a loop like that with no wait, it can slow down RS extremely because of the insane amount of color searching it's attempting to do. Even adding a Wait(1) can have large changes, but a wait(50) is good.

    To richk1693, people could use IsFunctionKeyDown(4) or keydown('n') or anything instead of keydown('a') - it's used so a scripter can break out of the loop without switching over to SCAR (which can be difficult when you have the mouse trying to move) and stopping the script manually. The keydown('a') pretty much means that if he pushes the 'a' key, then the script will break out of the loop (repeat... until(keydown('a'))) and stop. If you still don't understand, feel free to PM me.
    I dunno, those asians are pretty difficult to out-auto, legend has it they don't need sleep or food...~tim0suprem0
    Activity is on the decline - school's got me
    Check out my tutorial[s] on Color Finding!||Procedures and Functions!

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. Away From Computer Script
    By vcvv in forum RS3 Outdated / Broken Scripts
    Replies: 10
    Last Post: 03-07-2008, 04:09 AM

Posting Permissions

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