Thread: [PI] Tabs!

Results 1 to 9 of 9
  1. #1 [PI] Tabs! 
    Donator


    Join Date
    Jul 2011
    Posts
    921
    Thanks given
    199
    Thanks received
    178
    Rep Power
    189
    Hello, i wanted to ask that how could i check if the tab is clicked or the tab is open ?
    I looked around but didnt find anything useful..

    PLease help, will rep++ & thanks!
    Reply With Quote  
     

  2. #2  
    Registered Member Aintaro.'s Avatar
    Join Date
    Sep 2010
    Posts
    998
    Thanks given
    188
    Thanks received
    213
    Rep Power
    37
    setSidebarInterface(int menuId, int form)


    just change the method

    Code:
    public void setSidebarInterface(int menuId, int form) {
    		if(getOutStream() != null) {
    if(menuId == 5) {
    sM("This is a prayer tab")
    }
    			outStream.createFrame(71);
    			outStream.writeWord(form);
    			outStream.writeByteA(menuId);
    		}
    	}
    Something like this should do it...
    Reply With Quote  
     

  3. Thankful user:


  4. #3  
    Donator


    Join Date
    Jul 2011
    Posts
    921
    Thanks given
    199
    Thanks received
    178
    Rep Power
    189
    Doesn't seem to be working
    Reply With Quote  
     

  5. #4  
    Registered Member
    Join Date
    Apr 2012
    Posts
    64
    Thanks given
    0
    Thanks received
    0
    Rep Power
    20
    That's because "sm" is delta..
    Try sendMessage
    Reply With Quote  
     

  6. #5  
    Donator


    Join Date
    Jul 2011
    Posts
    921
    Thanks given
    199
    Thanks received
    178
    Rep Power
    189
    Quote Originally Posted by Trade Me View Post
    That's because "sm" is delta..
    Try sendMessage
    Gtfo the sendmessage is just an example!!
    Reply With Quote  
     

  7. #6  
    AleroBio Owner

    Join Date
    Feb 2011
    Posts
    362
    Thanks given
    26
    Thanks received
    13
    Rep Power
    0
    if(setSidebarInterface(14, 3917)){ // SKILL TAB
    c.sendmessage("You are using the Skill Tab");
    }

    the first dude had it right just he was using methods for a different base/revision
    Reply With Quote  
     

  8. #7  
    Donator


    Join Date
    Jul 2011
    Posts
    921
    Thanks given
    199
    Thanks received
    178
    Rep Power
    189
    Still not working

    Code:
    public void setSidebarInterface(int menuId, int form) {
    		synchronized (this) {
    			if(getOutStream() != null) {
    				if(menuId == 2 && form == 638){ //
    					sendMessage("You are using the Quest Tab");
    					}
    				outStream.createFrame(71);
    				outStream.writeWord(form);
    				outStream.writeByteA(menuId);
    			}
    		}
    	}
    Reply With Quote  
     

  9. #8  
    Registered Member

    Join Date
    Oct 2011
    Age
    28
    Posts
    1,880
    Thanks given
    311
    Thanks received
    557
    Rep Power
    703
    Code:
    public void setSidebarInterface(int menuId, int form) {
    		synchronized (this) {
    			if(getOutStream() != null) {
    				if(menuId == 2 && form == 638){ //
    					sendMessage("You are using the Quest Tab");
    					}
    				outStream.createFrame(71);
    				outStream.writeWord(form);
    				outStream.writeByteA(menuId);
                                    sendMessage("" + menuId + "");
    			}
    		}
    	}
    Reply With Quote  
     

  10. Thankful user:


  11. #9  
    Howdy

    nMik's Avatar
    Join Date
    Nov 2010
    Posts
    1,060
    Thanks given
    144
    Thanks received
    147
    Rep Power
    107
    Somones a cranky little bitch, how bout you change some of the code. 2 people have given you something where all you need to do is change a few things.

    Reply With Quote  
     


Thread Information
Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)


User Tag List

Similar Threads

  1. Fullscreen tabs/resizeable tabs
    By Alexander in forum Graphics
    Replies: 6
    Last Post: 03-02-2011, 05:19 AM
  2. Tabs
    By Maze in forum Help
    Replies: 2
    Last Post: 01-24-2011, 12:30 AM
  3. 508 Custom Tabs(508 client w/ 562 tabs)
    By Anthony-| in forum Help
    Replies: 0
    Last Post: 03-27-2010, 09:35 PM
  4. Replies: 16
    Last Post: 03-21-2009, 09:25 PM
Posting Permissions
  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •