Results 1 to 8 of 8

Thread: Slower Please?

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

    Default Slower Please?

    Okay i made my first script and i have a few questions. Mainly how to slow things down. If you look at my script you'll notice that it just types in the username and password at light speed. I know there is a scar command to type each key with a set amount of time between it, as i saw it in the manual. However i didn't understand it and said fuck it. If anyone would kindly explain how to slow this down. I would also like to know how to slow down the mouse speed. And anything else stupid i did i would like it if someone would point it out.



    SCAR Code:
    program scarlogin;
    procedure Stay;
    begin
      Wait(300+random(200));
    end;
    const
    Username= 'login';    //type in your username here.
    Password= 'password';    //type in your password here.
    begin
    MoveMouseSmooth (450, 291);
    stay;
    ClickMouse (450, 291,True);
    stay;
    MoveMouseSmooth(310, 261)
    stay;
    sendkeys(Username);
    stay;
    MoveMouseSmooth(300, 276);
    ClickMouse(300, 276,True);
    sendkeys(password);
    stay;
    MoveMouseSmooth(296, 320)
    stay;
    ClickMouse(296, 320,True)
    end.
    Quote Originally Posted by sirlaughsalot
    .... Obama had the devil jump out of his ass, run and stab Hillary in the back...
    ILMMTYAEAFHPY.

  2. #2
    Join Date
    Jun 2007
    Location
    Minnesota
    Posts
    773
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Ok first thing you need to do is include scar by putting
    SCAR Code:
    {.include SRL/SRL.scar}
    after the program name. Then replace all movemouse/clickmouse with mouse, which moves and clicks the mouse. IE: Mouse(x coord, y coord, random, random, right click? truefalse)
    the replace. Type send, should type the stuff slow enough, just leave that

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

    Default

    the command to wait between lines and stuff is

    wait(500);

    You switch 500 with the number of milliseconds you want it to wait. 1 second = 1000 milliseconds (this would wait half a second).

    Also, you can use typsend(username); instead of sendkeys. Typesend types slower and like a human does. You can also use Mouse(200, 350, 0, 0, true); This will make your mouse move to (200,350) and click there with a randomness of 0 y and 0 x pixels - it's more humanlike. If you just want to move the mouse, use MMouse(200, 350, 0, 0, true); - this is very humanlike, too.

    To adjust the mouse speed, just add in MouseSpeed:= 10; (or a number aronud that (12 is good)). You will need to put {.include SRL\SRL.scar} at the top of your script for these to work, though.
    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!

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

    Default

    So, now my script looks like this, but this is something wrong with it. It complies fine but i get a runtime error whenever i try to test it out.
    SCAR Code:
    program scarlogin;
    {.include SRL/SRL.scar}
    procedure Stay;
    begin
      Wait(300+random(200));
    end;
    const
    Username= 'login';    //type in your username here.
    Password= 'password';    //type in your password here.
    begin
    Mouse(450,291,0,0,true);
    stay;
    Mouse(310,261,0,0,true);
    stay;
    typesend(Username);
    stay;
    Mouse(300, 276,0,0,True);
    typesend(password);
    stay;
    Mouse(296,320,0,0,True);
    end.

    And thank you all for the quick helpful responses.
    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
    Dec 2006
    Location
    Copy pastin to my C#
    Posts
    3,788
    Mentioned
    8 Post(s)
    Quoted
    29 Post(s)

    Default

    Make this
    begin
    Mouse(450,291,0,0,true);
    to

    begin
    SetupSRL;
    Mouse(450,291,0,0,true);

  6. #6
    Join Date
    Jun 2007
    Location
    Minnesota
    Posts
    773
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Oops I forgot SetupSRL; my bad.

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

    Default

    Thank you all for being so helpful. This works perfectly for me now. (proud of himself for making a script even if it is this basic.)
    Quote Originally Posted by sirlaughsalot
    .... Obama had the devil jump out of his ass, run and stab Hillary in the back...
    ILMMTYAEAFHPY.

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

    Default

    No problem. Good luck in making more scripts.
    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. SRL Forums Slower!
    By Daniel in forum SRL Site Discussion
    Replies: 57
    Last Post: 07-17-2008, 11:11 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
  •