Results 1 to 11 of 11

Thread: How do I logout failproof?

  1. #1
    Join Date
    Apr 2007
    Location
    Lithuania
    Posts
    384
    Mentioned
    0 Post(s)
    Quoted
    15 Post(s)

    Default How do I logout failproof?

    Logout; seems to fail for me. I want to logout 100% every time.
    I want a snippet or a tip, something that would work.
    My mouse speed is 5-10.
    I tried
    Code:
    While (LoggedIn) do Logout; Wait(RandomRange(500,900));
    Code:
    Logout;Logout;Logout;
    It clicks the button at the top right, then somewhy inventory interface returns, as if it was pressed with an F* inventory hotkey, and the smart mouse just stays at the button on top right of the screen. Sometimes it just logs out as it should. Any help appreciated.

  2. #2
    Join Date
    Sep 2007
    Location
    British Columbia, Canada
    Posts
    4,047
    Mentioned
    1 Post(s)
    Quoted
    2 Post(s)

    Default

    What do you mean? like it doesn't always logout?
    Oh Hai Dar

  3. #3
    Join Date
    Feb 2011
    Location
    The Future.
    Posts
    5,600
    Mentioned
    396 Post(s)
    Quoted
    1598 Post(s)

    Default

    Reflection2:

    Code:
    Funciton LogoutFully: Boolean;
    var
      Child, Exit: TInterfaceChild;
    begin
      Exit:= R_GetInterfaceChild(548, 181);
    
      Repeat
        R_ClickInterface(Exit, 1);
        R_WaitInterfaceOpen(182, 3000);
      Until(R_ValidInterface(182));
    
      R_GetInterfaceChild(182, 6);
      while(R_ValidInterface(182)) do
        begin
          R_ClickInterface(Child, 1);
          R_WaitInterfaceClose(182, 3000);
          if(R_LoginScreen) then
          begin
            Result:= true;
            break;
          end;
        end;
    end;
    
    Function LogoutLobby: Boolean;
    var
      Child, Exit: TInterfaceChild;
    begin
      Exit:= R_GetInterfaceChild(548, 181);
    
      Repeat
        R_ClickInterface(Exit, 1);
        R_WaitInterfaceOpen(182, 3000);
      Until(R_ValidInterface(182));
    
      R_GetInterfaceChild(182, 13);
      while(R_ValidInterface(182)) do
        begin
          R_ClickInterface(Child, 1);
          R_WaitInterfaceClose(182, 3000);
          if(R_LobbyScreen) then
          begin
            Result:= true;
            break;
          end;
        end;
    end;
    Last edited by Brandon; 08-24-2011 at 04:11 PM.
    I am Ggzz..
    Hackintosher

  4. #4
    Join Date
    Apr 2007
    Location
    Lithuania
    Posts
    384
    Mentioned
    0 Post(s)
    Quoted
    15 Post(s)

    Default

    Quote Originally Posted by ggzz View Post
    Reflection2:

    Code:
    Funciton LogoutFully: Boolean;
    var
      Child, Exit: TInterfaceChild;
    begin
      Exit:= R_GetInterfaceChild(548, 181);
    
      Repeat
        R_ClickInterface(Exit, 1);
        R_WaitInterfaceOpen(182, 3000);
      Until(R_ValidInterface(182));
    
      R_GetInterfaceChild(182, 6);
      while(R_ValidInterface(182)) do
        begin
          R_ClickInterface(Child, 1);
          R_WaitInterfaceClose(182, 3000);
          if(R_LoginScreen) then
          begin
            Result:= true;
            break;
          end;
        end;
    end;
    
    Function LogoutLobby: Boolean;
    var
      Child, Exit: TInterfaceChild;
    begin
      Exit:= R_GetInterfaceChild(548, 181);
    
      Repeat
        R_ClickInterface(Exit, 1);
        R_WaitInterfaceOpen(182, 3000);
      Until(R_ValidInterface(182));
    
      R_GetInterfaceChild(182, 13);
      while(R_ValidInterface(182)) do
        begin
          R_ClickInterface(Child, 1);
          R_WaitInterfaceClose(182, 3000);
          if(R_LobbyScreen) then
          begin
            Result:= true;
            break;
          end;
        end;
    end;
    I'll try, thanks.

    Quote Originally Posted by Main View Post
    What do you mean? like it doesn't always logout?
    Yes

  5. #5
    Join Date
    Feb 2009
    Location
    Irvine, CA
    Posts
    2,873
    Mentioned
    8 Post(s)
    Quoted
    138 Post(s)

    Default

    Simba Code:
    function LogoutEx: Boolean;
    begin
      CloseBank;
      CloseWindow;
      Result := Logout;
    end;

    Should work.

  6. #6
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Sounds to me like he's saying when the logout tab is clicked (i.e. the X in the top right) another gametab is opened right after. I'm not sure what would cause this, but Logout(); is working fine for me.

  7. #7
    Join Date
    Nov 2006
    Posts
    2,369
    Mentioned
    4 Post(s)
    Quoted
    78 Post(s)

    Default

    Sometime logout misclicked the logout button in Harri's account creator and the script failed or something because of that. I mean it clicked below or above the logout button.
    Quote Originally Posted by DeSnob View Post
    ETA's don't exist in SRL like they did in other communities. Want a faster update? Help out with updating, otherwise just gotta wait it out.

  8. #8
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by weequ View Post
    Sometime logout misclicked the logout button in Harri's account creator and the script failed or something because of that. I mean it clicked below or above the logout button.
    Recently? That was fixed a long time ago as far as I know.

  9. #9
    Join Date
    Apr 2007
    Location
    Lithuania
    Posts
    384
    Mentioned
    0 Post(s)
    Quoted
    15 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    Sounds to me like he's saying when the logout tab is clicked (i.e. the X in the top right) another gametab is opened right after. I'm not sure what would cause this, but Logout(); is working fine for me.
    That's what I meant.

    Quote Originally Posted by TomTuff
    Simba Code:

    function LogoutEx: Boolean;
    begin
    CloseBank;
    CloseWindow;
    Result := Logout;
    end;


    Should work.
    Strange, this does work, even though I'm not using a bank, but I used CloseWindow; myself. Well thanks.

  10. #10
    Join Date
    Feb 2007
    Location
    Estonia.
    Posts
    1,938
    Mentioned
    0 Post(s)
    Quoted
    2 Post(s)

    Default

    Quote Originally Posted by Coh3n View Post
    Recently? That was fixed a long time ago as far as I know.
    Yes, I've had it recently, like 3 days ago? still happens. Then it somehow sorts out after 10-20 secs to click the right place.

    ~Eerik.

  11. #11
    Join Date
    Apr 2008
    Location
    Marquette, MI
    Posts
    15,252
    Mentioned
    138 Post(s)
    Quoted
    680 Post(s)

    Default

    Quote Originally Posted by Heavenzeyez1 View Post
    Yes, I've had it recently, like 3 days ago? still happens. Then it somehow sorts out after 10-20 secs to click the right place.

    ~Eerik.
    Ah okay, we'll have to look into it then. Thanks.

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
  •