Results 1 to 12 of 12

Thread: Help with my autologin!!(First autologin for me)

  1. #1
    Join Date
    Dec 2006
    Posts
    47
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Help with my autologin!!(First autologin for me)

    ok here is script:
    Code:
    program Autologin;
    var
    Username, Password:
    //USERNAME SETUP//
    
    const
    Username = 'Insert username here';//Username that you want to login on.
    Password = 'Insert Password Here';//Password that you want to use.
    Procedure Login;
    begin
    ClickMouse (762, 339, True)
    ClickMouse (678, 408, True)
    ClickMouse (512, 335, True)
    Wait(100000)
    ClickMouse (575, 541, True)
    SendKeys(Username+chr(13));
      Wait(1000+random(100));
      SendKeys(Password);
    Clickmouse(426, 569, True)
    end.
    ok here is the error i get:
    Code:
    Failed when compiling
    Line 6: [Error] (6:1): Identifier expected in script
    PLease help!!!


  2. #2
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    just take all out of variables, If you already have username and password in consts, you dont need to put em into variables. And procedure must end with End; not with End.
    And if you use variables sometimes, you must put them like this:
    Code:
    Username, Password:string;
    Because your variable type is string you write after them
    Code:
    :String;
    Hope this helps.

  3. #3
    Join Date
    Dec 2006
    Posts
    47
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Code:
    Failed when compiling
    Line 6: [Error] (6:11): Semicolon (';') expected in script
    Is the error i get now!(sorry i am a scripting noob!!)

  4. #4
    Join Date
    Dec 2006
    Posts
    47
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    SORRY FOR DOUBLE POST---
    scratch that i have this script now:
    Code:
    program Autologin;
    
    const
    Username = 'Insert username here';//Username that you want to login on.
    Password = 'Insert Password Here';//Password that you want to use.
    
    Procedure Login;
    begin
    ClickMouse (762, 339, True)
    ClickMouse (678, 408, True)
    ClickMouse (512, 335, True)
    Wait(100000)
    ClickMouse (575, 541, True)
    SendKeys(Username+chr(13));
      Wait(1000+random(100));
      SendKeys(Password);
    Clickmouse(426, 569, True)
    end;
    so please see error and give me working script ok?

  5. #5
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Code:
    program Autologin;
    //var
    //Username, Password:
          {These are already in consts,
           You dont them in variables anymore}
    
    const
    Username = 'Insert username here';//Username that you want to login on.
    Password = 'Insert Password Here';//Password that you want to use.
    Procedure Login;
    begin
    ClickMouse (762, 339, True)
    ClickMouse (678, 408, True)
    ClickMouse (512, 335, True)
    Wait(100000)
    ClickMouse (575, 541, True)
    SendKeys(Username+chr(13));
      Wait(1000+random(100));
      SendKeys(Password);
    Clickmouse(426, 569, True)
    end; //Procedure ends with "End;" not with "End."
    
    begin
    LogIn;
    end. //Main loop ends with "End."
    Oh yea, you also must put "Main loop" in the scar. it does your procedure, you see it at the end of this script.

  6. #6
    Join Date
    Dec 2006
    Posts
    47
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    thanks! had to do shopping!

  7. #7
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by wade11 View Post
    thanks! had to do shopping!
    No problems. I you have any more problems, I can help.

  8. #8
    Join Date
    Oct 2006
    Posts
    412
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    instead of just helping him solve his errors that hes posting, you should also fix it to use SRl procedures, not base scar ones. This is an SRL site as it is.

    Code:
    program Autologin;
    {.include SRL/SRL.Scar}
    // Changed all scar clickmouses to BETTER SRL mouse procedures.
    const
    Username = 'Insert username here';//Username that you want to login on.
    Password = 'Insert Password Here';//Password that you want to use.
    Procedure Login;
    begin
    //assuming the next 3 mouse things click play rs, the quality, and best world buttons
    Mouse (762, 339,1,1,True)
    Mouse (678, 408,1,1,True)
    Mouse (512, 335,1,1,True)
    Wait(100000)// im assuming this is waiting for the client to load? BAD way to do it.
    Mouse (575, 541,1,1,True)
    Typesend(Username+chr(13));//use the srl text typing feature
      Wait(1000+random(100));
      Typesend(Password);
    Mouse(426, 569,1,1,True)
    end; //Procedure ends with "End;" not with "End."
    
    begin
    SetupSRL;
    LogIn;
    end. //Main loop ends with "End."

  9. #9
    Join Date
    Dec 2006
    Posts
    47
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Pentti ummm pm me ok? I would like some lessons on scripting if possible!!

  10. #10
    Join Date
    Jun 2006
    Location
    USA
    Posts
    1,828
    Mentioned
    1 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by wade11 View Post
    Pentti ummm pm me ok? I would like some lessons on scripting if possible!!
    yeah sure.

  11. #11
    Join Date
    Dec 2006
    Location
    London, England
    Posts
    36
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Wait(100000)//
    here's how to improve this:

    SCAR Code:
    repeat// Repeats the code below
      GetColor((x, y)= somecoloryouchose){Change 'somecoloryouchose' with a
               color that you only see on the loginscreen like a light grey, then get
               the coordinates of this color and replace it with x and y //If find a
               color in the specifide area then returns true}

    until(getcolor((x, y)...//you know what i mean// Breaks from the loop when it Gets the color in the specified coordinates

    replace the wait(10000) with this peice of code
    Current Scripts:
    http://www.fenjer.com/adnan/SRL/16/100/AutoLogin.pnghttp://villu-reborn.com/showthread.php?t=5219

    Currently Working on:
    http://www.fenjer.com/adnan/SRL/9/5/air%20crafter.png

    Join the rebellion call kaitneiks, cakemix.(just thought i'd add this, soo many good memories)

  12. #12
    Join Date
    Dec 2006
    Posts
    47
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

Thread Information

Users Browsing this Thread

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

Similar Threads

  1. AutoLogin
    By Baked0420 in forum First Scripts
    Replies: 13
    Last Post: 02-28-2009, 11:04 AM
  2. AutoLogin help please.
    By godspower55 in forum OSR Help
    Replies: 1
    Last Post: 11-12-2008, 05:01 PM
  3. AutoLogin i...
    By BritishBunny in forum OSR Help
    Replies: 4
    Last Post: 07-08-2007, 04:28 PM
  4. Autologin
    By Dadeer in forum RS3 Outdated / Broken Scripts
    Replies: 1
    Last Post: 11-30-2006, 08:45 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
  •