Results 1 to 13 of 13

Thread: MyPlayer.login failed

  1. #1
    Join Date
    Sep 2015
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default MyPlayer.login failed

    Hello!

    I want to inform you that with the latest update, login function is broken. It will write V where should be @ in the username place.

    login_bug.PNG

  2. #2
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    https://github.com/KyleHunter/OSR-Re...9d15dc74417e61

    Shouldnt have changed anything in the typing functions...
    So try it again? and then once more.

  3. #3
    Join Date
    Sep 2015
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Don't really know what that link is about. I tried it running many times on different computer and it's always making the same mistake.

  4. #4
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    Not to mention that the last update to the actual code of reflection was at least 2 months ago...

  5. #5
    Join Date
    Sep 2015
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    What's that about then?

    update.PNG

  6. #6
    Join Date
    Oct 2006
    Posts
    6,752
    Mentioned
    95 Post(s)
    Quoted
    532 Post(s)

    Default

    Quote Originally Posted by kakadudl View Post
    What's that about then?

    update.PNG
    That was to force update the hooks, no code was changed
    “The long-lived and those who will die soonest lose the same thing. The present is all that they can give up, since that is all you have, and what you do not have, you cannot lose.” - Marcus Aurelius

  7. #7
    Join Date
    Sep 2015
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Quote Originally Posted by Kyle View Post
    That was to force update the hooks, no code was changed
    Oh ok I see. Do you maybe know what could be the problem about that?

  8. #8
    Join Date
    Oct 2006
    Posts
    6,752
    Mentioned
    95 Post(s)
    Quoted
    532 Post(s)

    Default

    Not a clue. Seems to just be on your end, I tried it and it works for me

    JCbXLu9.png
    “The long-lived and those who will die soonest lose the same thing. The present is all that they can give up, since that is all you have, and what you do not have, you cannot lose.” - Marcus Aurelius

  9. #9
    Join Date
    Sep 2015
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Quote Originally Posted by Kyle View Post
    Not a clue. Seems to just be on your end, I tried it and it works for me

    JCbXLu9.png
    Could you please post your TReflectionLogin.EnterDetails(Username, Password: String) procedure please? So I can see if It's different. I tried using it and I think here lies the problem. I also tried sending with SendKeys(...) and it worked

  10. #10
    Join Date
    Jan 2012
    Posts
    1,596
    Mentioned
    78 Post(s)
    Quoted
    826 Post(s)

    Default

    Works fine for me.
    Simba Code:
    Procedure TReflectionLogin.EnterDetails(Username, Password: String);
    var
      Clear: array [0..1] of Boolean;
      Timeout: UInt64 := GetTickCount64 + Random(7500, 8000);
    begin
      Clear[Login_LoginBox_Byte] := CountColor(Login_Text_White, Login_LoginBox.X1,
                                               Login_LoginBox.Y1, Login_LoginBox.X2,
                                               Login_LoginBox.Y2);

      Clear[Login_PasswordBox_Byte] := CountColor(Login_Text_White,
                                                  Login_PasswordBox.X1,
                                                  Login_PasswordBox.Y1,
                                                  Login_PasswordBox.X2,
                                                  Login_PasswordBox.Y2);

      if (Reflect.Login.GetCursor <> Login_LoginBox_Byte) then
        Reflect.Login.SetCursor(Login_LoginBox_Byte);
      if (Clear[Login_LoginBox_Byte]) then
        while (CountColor(Login_Text_White, Login_LoginBox.X1, Login_LoginBox.Y1, Login_LoginBox.X2, Login_LoginBox.Y2) > 5) and (Timeout > GetTickCount64) do
        begin
          Reflect.Keyboard.Send('{backspace}');
          Wait(Random(30, 120));
        end;
      Reflect.Keyboard.Send(Username);
      if (Reflect.Login.GetCursor <> Login_PasswordBox_Byte) then
        Reflect.Login.SetCursor(Login_PasswordBox_Byte);
      if (Clear[Login_PasswordBox_Byte]) then
        while (CountColor(Login_Text_White, Login_PasswordBox.X1,
               Login_PasswordBox.Y1, Login_PasswordBox.X2,
               Login_PasswordBox.Y2) > 5) and (Timeout > GetTickCount64) do

        begin
          Reflect.Keyboard.Send('{backspace}');
          Wait(Random(30, 120));
        end;
      Reflect.Keyboard.Send(Password+'{enter}');
      Wait(1000+Random(500));
    end;
    i doubt this is /really/ what you want though.

    maybe its this?
    Simba Code:
    procedure TReflectionKeyboard.Send(Text: string);
    var
      Button, TextArray: tStringArray;
      ButtonIndex, Presses: Integer;
    begin
      Text := Self.format(Text);
      TextArray := MultiBetween(Text,'{','}');
      for ButtonIndex to High(TextArray) do
      begin
        Button := Explode(' ', TextArray[ButtonIndex]);
        if Length(Button) = 1 then
          Self.Press(StrToInt(Button[0]))
        else
          Self.Press(StrToInt(Button[0]), Button[1])
      end;
    end;

  11. #11
    Join Date
    Sep 2015
    Posts
    35
    Mentioned
    0 Post(s)
    Quoted
    11 Post(s)

    Default

    Quote Originally Posted by Turpinator View Post
    Works fine for me.
    Simba Code:
    Procedure TReflectionLogin.EnterDetails(Username, Password: String);
    var
      Clear: array [0..1] of Boolean;
      Timeout: UInt64 := GetTickCount64 + Random(7500, 8000);
    begin
      Clear[Login_LoginBox_Byte] := CountColor(Login_Text_White, Login_LoginBox.X1,
                                               Login_LoginBox.Y1, Login_LoginBox.X2,
                                               Login_LoginBox.Y2);

      Clear[Login_PasswordBox_Byte] := CountColor(Login_Text_White,
                                                  Login_PasswordBox.X1,
                                                  Login_PasswordBox.Y1,
                                                  Login_PasswordBox.X2,
                                                  Login_PasswordBox.Y2);

      if (Reflect.Login.GetCursor <> Login_LoginBox_Byte) then
        Reflect.Login.SetCursor(Login_LoginBox_Byte);
      if (Clear[Login_LoginBox_Byte]) then
        while (CountColor(Login_Text_White, Login_LoginBox.X1, Login_LoginBox.Y1, Login_LoginBox.X2, Login_LoginBox.Y2) > 5) and (Timeout > GetTickCount64) do
        begin
          Reflect.Keyboard.Send('{backspace}');
          Wait(Random(30, 120));
        end;
      Reflect.Keyboard.Send(Username);
      if (Reflect.Login.GetCursor <> Login_PasswordBox_Byte) then
        Reflect.Login.SetCursor(Login_PasswordBox_Byte);
      if (Clear[Login_PasswordBox_Byte]) then
        while (CountColor(Login_Text_White, Login_PasswordBox.X1,
               Login_PasswordBox.Y1, Login_PasswordBox.X2,
               Login_PasswordBox.Y2) > 5) and (Timeout > GetTickCount64) do

        begin
          Reflect.Keyboard.Send('{backspace}');
          Wait(Random(30, 120));
        end;
      Reflect.Keyboard.Send(Password+'{enter}');
      Wait(1000+Random(500));
    end;
    i doubt this is /really/ what you want though.

    maybe its this?
    Simba Code:
    procedure TReflectionKeyboard.Send(Text: string);
    var
      Button, TextArray: tStringArray;
      ButtonIndex, Presses: Integer;
    begin
      Text := Self.format(Text);
      TextArray := MultiBetween(Text,'{','}');
      for ButtonIndex to High(TextArray) do
      begin
        Button := Explode(' ', TextArray[ButtonIndex]);
        if Length(Button) = 1 then
          Self.Press(StrToInt(Button[0]))
        else
          Self.Press(StrToInt(Button[0]), Button[1])
      end;
    end;
    Thanks, will look into it soon. Second one is the one I want yeah

    I just swapped Reflect.Keyboard.Send(Username) for SendKeys for now

  12. #12
    Join Date
    Oct 2006
    Posts
    6,752
    Mentioned
    95 Post(s)
    Quoted
    532 Post(s)

    Default

    @Obscurity; Any thoughts?
    “The long-lived and those who will die soonest lose the same thing. The present is all that they can give up, since that is all you have, and what you do not have, you cannot lose.” - Marcus Aurelius

  13. #13
    Join Date
    Dec 2013
    Location
    Sweden
    Posts
    269
    Mentioned
    17 Post(s)
    Quoted
    161 Post(s)

    Default

    I'm guessing it has to do with Simba using keycodes from an english keyboard or something. I had the same problem with sendKeys using " instead of @, I found a temporary fix by switching to an english keyboard layout.
    "Once you begin to think, you can't stop."

    Life > 0

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
  •