Results 1 to 2 of 2

Thread: GetCurrentTab

  1. #1
    Join Date
    Mar 2007
    Posts
    5,125
    Mentioned
    275 Post(s)
    Quoted
    901 Post(s)

    Default GetCurrentTab

    Hi All.

    Since RuneScape just updated, seems they changed the colours for the tabs.

    GetCurrentTab is always returning '37' for me.

    Can anyone else please see if this is the same case for them?

    Thanks

    Justin.

    Forum account issues? Please send me a PM

  2. #2
    Join Date
    Dec 2011
    Location
    Hyrule
    Posts
    8,662
    Mentioned
    179 Post(s)
    Quoted
    1870 Post(s)

    Default

    Haven't tested what it is returning, but it is screwing up

    edit:

    Simba Code:
    function GetCurrentTab: Integer;
    var
      tP: TPoint;
      x,y: integer;
    begin
      Result := -1;
      if (not LoggedIn) then exit;

      for Result := 0 to (tab_LogOut - tab_Combat)-1 do
      begin
        tP.X := 535 + Result mod 8 * 30;
        tP.Y := 169 + Result div 8 * 298;
        if findcolortolerance(x,y,3775974,tp.x-1,tp.y-1,tp.x+1,tp.y+1,15) Then
          break;
      end;
      Result := Result + tab_Combat;
      if BankScreen then
        Result := tab_Inv;
    end;

    this works for me
    Last edited by Ashaman88; 10-24-2012 at 12:11 PM.

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
  •