Results 1 to 5 of 5

Thread: Logout

  1. #1
    Join Date
    Feb 2007
    Location
    Florida
    Posts
    460
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default Logout

    Not sure if anyone else if having a problem with the logout function missing the button sometimes. if you are change Line 355 in Login.scar to the bottom code box.

    Code:
    {*******************************************************************************
    function Logout: Boolean;
    By: Starblaster100, Raymond, IceFire908, & Tarajunky
    Description: Logs you all the way out from ingame.
    *******************************************************************************}
    function Logout: Boolean;
    var
      x, y, c, i: Integer;
    begin
      Result := (not (LoggedIn));
      if (Result) then
        Exit;
      if (SRL_Procs[srl_OnLogOut] <> nil) then
        SRL_Procs[srl_OnLogOut]();
      if (not (GameTab(tab_LogOut))) then
        Exit;
      Wait(200 + Random(100));
      while (LoggedIn) and (c < 10) do
      begin
        Inc(c);
        if(FindText(x, y, 'ogin', UpChars, MIX1, MIY1, MIX2, MIY2))then
        begin
          MouseBox(570, 393, 712, 417, 1); // <--
          for i := 0 to 10 do
          begin
            Wait(1000);
            if (not (LoggedIn)) then
            begin
              Result := True;
              Exit;
            end;
          end;
        end else
        if(FindText(x, y, 'lick', UpChars, MIX1, MIY1, MIX2, MIY2))then
        begin
          MouseBox(579, 367, 699, 386, 1);
          for i := 0 to 10 do
          begin
            Wait(1000);
            if not(LoggedIn) then
            begin
              Result := True;
              Exit;
            end;
          end;
        end
      end;
    end;
    changed

    Code:
    MouseBox(573, 403, 702, 429, 1);
    to

    Code:
    MouseBox(570, 393, 712, 417, 1);
    Varrock gTanner
    Previously known as England155.

  2. #2
    Join Date
    Dec 2006
    Location
    Sweden
    Posts
    10,812
    Mentioned
    3 Post(s)
    Quoted
    16 Post(s)

    Default

    The box sometimes misses because the position is different on the Unsigned client vs Signed, and also changes if you have Facebook login enabled. It corrects itself however, so it's not a huge issue - if it misclicks, it tries again.


    Send SMS messages using Simba
    Please do not send me a PM asking for help; I will not be able to help you! Post in a relevant thread or make your own! And always remember to search first!

  3. #3
    Join Date
    Feb 2007
    Location
    Florida
    Posts
    460
    Mentioned
    0 Post(s)
    Quoted
    0 Post(s)

    Default

    Quote Originally Posted by Harry View Post
    The box sometimes misses because the position is different on the Unsigned client vs Signed, and also changes if you have Facebook login enabled. It corrects itself however, so it's not a huge issue - if it misclicks, it tries again.
    Ah, Thanks for explaining.
    Varrock gTanner
    Previously known as England155.

  4. #4
    Join Date
    Nov 2008
    Location
    Melbourne, Australia
    Posts
    2,240
    Mentioned
    3 Post(s)
    Quoted
    11 Post(s)

    Default

    Yes I also saw it miss the button while I was running a rune essence miner (It was switching players)



    See the red dot?

    Perhaps a bitmap or a DTM will help it find the button accurately in all circumstances
    Click here to find out how to get full screen without members! | Click here to check out my Ultimate Bitmap Tutorial! Edited to work with Simba! |

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

    Default

    I always thought it looked for the text...

    Apparently not.

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
  •