Results 1 to 7 of 7

Thread: My autologmein script

  1. #1
    Join Date
    Nov 2006
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default My autologmein script

    this is my first offical script that i have done and at first used the command movemouse(bla,bla) it seemed to qiuck therefore i wanted to try n change it so the mouse actually moves not just clicks instantly

    here is my first one
    SCAR Code:
    {////////////////////////////////////////////////
    //          MATTS LOGMEIN SCRIPT               //
    /////////////////////////////////////////////////
    //         It just basically logs you in       //
    //        You dont need to touch anything      //
    // Its all setup just drag the crosshairs      //
    // on to the runescape client and press        //
    //         GO (green button lol)               //
    //                                             //
    //                                             //
    /////////////////////////////////////////////////}

     
    program logmein;
    begin
     
    clickmouse(154,135,true);
    wait(2000);
    clickmouse(449,292,true);
    wait(2000)
    clickmouse(374,260,true);
    sendkeys('') {type in your username}
    wait(2000);
    clickmouse(307,276,true);
    sendkeys('') {Type in your password}
    wait(2000);
    clickmouse(306,321,true);
    wait(4000);
    clickmouse(400,388,true) end.

    here is my second one im tryin to modify

    SCAR Code:
    {////////////////////////////////////////////////
    //          MATTS LOGMEIN SCRIPT               //
    /////////////////////////////////////////////////
    //         It just basically logs you in       //
    //        You dont need to touch anything      //
    // Its all setup just drag the crosshairs      //
    // on to the runescape client and press        //
    //         GO (green button lol)               //
    //                                             //
    //                                             //
    /////////////////////////////////////////////////}


    program logmein;
    begin

    MoveMouseSmoothFrom(401,168,242,338,true);
    wait(2000);
    MoveMouseSmoothFrom(242,338,583,495,true);
    wait(2000)
    MoveMouseSmoothFrom(583,495,497,464,true);
    sendkeys('') {type in your username}
    wait(2000);
    MoveMouseSmoothFrom(497,464,491,480,true);
    sendkeys('') {Type in your password}
    wait(2000);
    clickmouse(491,480,438,526,true);
    wait(4000);
    clickmouse(438,526,511,545,true)
    end.

    iv tried to update the script again but it keeps coming up with the same error which is
    [error] 16:42 invalid number of parameters in script

    heres the script

    SCAR Code:
    {////////////////////////////////////////////////
    //          MATTS LOGMEIN SCRIPT               //
    /////////////////////////////////////////////////
    //         It just basically logs you in       //
    //        You dont need to touch anything      //
    // Its all setup just drag the crosshairs      //
    // on to the runescape client and press        //
    //         GO (green button lol)               //
    //                                             //
    //                                             //
    /////////////////////////////////////////////////}


    program logmein;
    begin

    MoveMouseSmoothFrom(401,168,242,338,true);
    clickmouse(242,338,true);
    wait(2000);
    MoveMouseSmoothFrom(242,338,583,495,true);
    clickmouse(583,495,true);
    wait(2000)
    MoveMouseSmoothFrom(583,495,497,464,true);
    clickmouse(497,464,true);
    sendkeys('') {type in your username}
    wait(2000);
    MoveMouseSmoothFrom(497,464,491,480,true);
    clickmouse(491,480,true);
    sendkeys('') {Type in your password}
    wait(2000);
    MoveMouseSmoothFrom(491,480,438,526,true);
    clickmouse(438,526,true);
    wait(4000);
    MoveMouseSmoothFrom(438,526,511,545,true);
    clickmouse(511,545,true);
    end.

    could someone please tell me and help me what im doing wrong
    im back----took a long break away but im back and im gonna get into scripting

  2. #2
    Join Date
    Nov 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SCAR Code:
    {////////////////////////////////////////////////
    //          MATTS LOGMEIN SCRIPT               //
    /////////////////////////////////////////////////
    //         It just basically logs you in       //
    //        You dont need to touch anything      //
    // Its all setup just drag the crosshairs      //
    // on to the runescape client and press        //
    //         GO (green button lol)               //
    //                                             //
    //                                             //
    /////////////////////////////////////////////////}



    program logmein;
    begin

    MoveMouseSmoothFrom(401,168,242,338);
    clickmouse(242,338,true);
    wait(2000);
    MoveMouseSmoothFrom(242,338,583,495);
    clickmouse(583,495,true);
    wait(2000)
    MoveMouseSmoothFrom(583,495,497,464);
    clickmouse(497,464,true);
    sendkeys('') {type in your username}
    wait(2000);
    MoveMouseSmoothFrom(497,464,491,480);
    clickmouse(491,480,true);
    sendkeys('') {Type in your password}
    wait(2000);
    MoveMouseSmoothFrom(491,480,438,526);
    clickmouse(438,526,true);
    wait(4000);
    MoveMouseSmoothFrom(438,526,511,545);
    clickmouse(511,545,true);
    end.


    here ya go.

  3. #3
    Join Date
    Nov 2006
    Posts
    120
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    What Kool Aid meant to say was that an invalid number of parameters means that when you call a function or procedure such as

    MoveMouseSmoothFrom(401,168,242,338,true);

    you have too many (or too little) things in here "(401,168,242,338,true)"

    then you should go through the line (line 16 in this case ([error] 16:42) and look at your procedure to make sure you have the right number of parameters.

    Pop open your SCAR F1 help (or SRL Manual if you use those procedure.....you should) and take a looksee at the function. It only needs 4 parameters so there you can see your problem and remedy it.

    Good work Kool Aid

    Ransom

  4. #4
    Join Date
    Nov 2006
    Posts
    20
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Yeah a handy feature is when you start typing something like MoveMouseFrom that little thing pops up show how many parameters are in it, I use it more than anything.

  5. #5
    Join Date
    Nov 2006
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    in other words i did not need the true at the end of it?
    thanks guys
    im back----took a long break away but im back and im gonna get into scripting

  6. #6
    Join Date
    Feb 2006
    Location
    Tracy/Davis, California
    Posts
    12,631
    Mentioned
    135 Post(s)
    Quoted
    418 Post(s)

    Default

    hey, just to let you know
    movemossesmooth and clikmouse are very detectable
    learn how to use srl as an include and it will be a lot better =)
    Nothing is wrong with it though, good script to learn with, but it is detectable

  7. #7
    Join Date
    Nov 2006
    Posts
    117
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks for your advice i will try and change it
    im back----took a long break away but im back and im gonna get into scripting

Thread Information

Users Browsing this Thread

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

Posting Permissions

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