Results 1 to 2 of 2

Thread: OSRS Log-in Issue

  1. #1
    Join Date
    Nov 2018
    Posts
    3
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Post OSRS Log-in Issue

    So for the last few days I've been raking my brain...
    I downloaded all the newest java, simba, SRL/OSR, TRS/Walker etc as per the guide.
    And i thought it would be a good idea to take a look at the log-in code in the guides,
    and also in other peoples scripts. To get an idea of how i'm meant to be writing it.
    But it seems no matter what i do, or whos script i use it doesn't work.
    Mean it'll load Smart, but i cant declare player with all the login info.
    The only way that i've been able to log on automatically is to use PInput and KInput include,
    by Kasi, and send my information after clickmouse xy.
    I'm combining 3 scripts just to get one working, could anyone point me to a fix please. My code below;

    Opens Smart client

    program new;
    {$define SMART} //If not using SMART, then comment this line out
    {$I SRL/OSR.simba}
    {$I RSWalker/Walker.simba}

    begin
    clearDebug();
    srl.Setup([]);
    end.


    Grabs client PID

    program new;

    {$include PInput/PInput.simba}

    procedure Stop();
    begin
    PInput.Shutdown(); // Make sure you shutdown PInput
    end;

    begin
    PInput.Setup(); // Setup PInput. Grabs the PID of the target window.
    PInput.OverrideSimba := false; // Don't override Simba Mouse and Keyboard functions
    PInput.MoveMouse(580, 230);
    PInput.HoldMouse(580, 230, mouse_Left);
    PInput.MoveMouse(700, 400);
    sleep(10);
    Stop();
    end.
    end.


    Uses client PID and logs on using clicks and keysends etc



    // You need to write PID number below once you have grabbed it.
    // And You Also Need To Type In your Details.

    program new;

    {$include PInput/PInput.simba}

    function WritePID: Integer;
    begin
    Result := ; // Write Obtained PID Number here.
    end;
    function WriteUserName: String;
    begin
    Result := ""; // Write UserName here.
    end;
    function WritePassword: String;
    begin
    Result := ""; // Write Password here.
    end;

    procedure Stop();
    begin
    PInput.Shutdown();
    end;

    procedure Login();
    begin
    PInput.Setup([(WritePID)]);
    PInput.MoveMouse(0,454, 288);
    PInput.ClickMouse(0,454,288,1);
    sleep(3000);
    PInput.SendKeys(0,(WriteUserName),100,100);
    sleep(2000);
    PInput_PressKey((WritePID),13);
    sleep(2000);
    PInput.SendKeys(0,(WritePassword),100,100);
    sleep(2000);
    PInput.ClickMouse(0,311,316,1);
    sleep(5000);
    PInput.ClickMouse(0,397,355,1);
    end;


    begin
    Login();
    Stop();
    end.




    Any help is appreciated, thank you

  2. #2
    Join Date
    Nov 2018
    Location
    System32
    Posts
    13
    Mentioned
    0 Post(s)
    Quoted
    4 Post(s)

    Default

    Your problem might be that you're using different programs.
    See if this will log you in:

    Simba Code:
    {$define SMART}
    {$I SRL/OSR.simba}
    {$I RSWalker/Walker.simba}



    const //This is where we declare our constants
      LOGIN_NAME = '';    //Username/Email
      LOGIN_PASS = '';    //Password
      BANK_PIN   = '';    //Bank Pin
      RS_WORLD   = -1;    //Home World. -1 is random
      IS_MEMBER  = false; //Member, or not?



    procedure declarePlayers();
    begin
      with Players.New()^ do
      begin
        LoginName  := LOGIN_NAME;
        Password   := LOGIN_PASS;
        BankPin    := BANK_PIN;
        IsActive   := True;
        IsMember   := IS_MEMBER;
        World      := RS_WORLD;
      end;
      Players.SetCurrent(0);
    end;



    begin
      SRL.Setup([]);
      declarePlayers();
      if (not SRL.isLoggedIn) then
        begin
           Players.LoginCurrent();
        end;
    end.

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
  •