Thread: Disable Function Key Default Actions

Page 1 of 3 123 LastLast
Results 1 to 10 of 22
  1. #1 Disable Function Key Default Actions 
    Registered Member
    Join Date
    Jul 2013
    Posts
    181
    Thanks given
    3
    Thanks received
    12
    Rep Power
    12
    I'm planning to make use of the function keys (f1-f10) and don't know how to disable the default action of these keys (they open game tabs). I've tried adding player.getInterfaceManager().openGameTab(-1); above the action I wish to have happen, but it's too delayed and still flashes the tab they're default assigned to open. I'm thinking this has something to do with client, specifically class2.java, I just have no idea how I'd disable that specific process though.

    I've already searched the src folder for openGameTab and nothing came up, this is why I believe it's client sided.

    My revision is 718.

    Any help appreciated, thanks.
    Reply With Quote  
     

  2. #2  
    Registered Member
    Join Date
    Jul 2013
    Posts
    181
    Thanks given
    3
    Thanks received
    12
    Rep Power
    12
    Bump, still need help
    Reply With Quote  
     

  3. #3  
    Registered Member
    Join Date
    Jul 2013
    Posts
    181
    Thanks given
    3
    Thanks received
    12
    Rep Power
    12
    Bump
    Reply With Quote  
     

  4. #4  
    Registered Member
    Join Date
    Jul 2013
    Posts
    181
    Thanks given
    3
    Thanks received
    12
    Rep Power
    12
    Bump
    Reply With Quote  
     

  5. #5  
    Registered Member
    Join Date
    Jul 2013
    Posts
    181
    Thanks given
    3
    Thanks received
    12
    Rep Power
    12
    Bump
    Reply With Quote  
     

  6. #6  
    I don't speak Spanish
    Daron's Avatar
    Join Date
    Feb 2012
    Age
    28
    Posts
    218
    Thanks given
    1
    Thanks received
    39
    Rep Power
    45
    If I'm not mistaken, the keys are client sided?
    Attached image
    Attached image
    Reply With Quote  
     

  7. #7  
    Registered Member
    Join Date
    Jul 2013
    Posts
    181
    Thanks given
    3
    Thanks received
    12
    Rep Power
    12
    Quote Originally Posted by Daron View Post
    If I'm not mistaken, the keys are client sided?
    Yes, that is correct. Currently those keys are able to open game tabs (inventory, equipment, prayer, combat, etc). I'm trying to disable those tabs from being able to be opened so I can let the player choose what those keys do server side. I don't know where in the world to find the code in the client that tells those keys to open game tabs though. That's what I've been hoping someone can help me with.
    Reply With Quote  
     

  8. #8  
    Banned

    Join Date
    Jul 2011
    Posts
    1,767
    Thanks given
    493
    Thanks received
    425
    Rep Power
    0
    I figured it out for you, I'm not sure if this is the correct way but it worked fine when I disabled F1 for inventory

    go to class323_sub1.java and find method3953(KeyEvent keyevent, int i, int i_4_)

    to disable a specific key, do if (i_5_ == keyid) return;

    you can find key ids here https://www.cambiaresearch.com/artic...odes-key-codes
    Reply With Quote  
     

  9. #9  
    Registered Member
    Join Date
    Jul 2013
    Posts
    181
    Thanks given
    3
    Thanks received
    12
    Rep Power
    12
    Quote Originally Posted by _hassan View Post
    I figured it out for you, I'm not sure if this is the correct way but it worked fine when I disabled F1 for inventory

    go to class323_sub1.java and find method3953(KeyEvent keyevent, int i, int i_4_)

    to disable a specific key, do if (i_5_ == keyid) return;

    you can find key ids here https://www.cambiaresearch.com/artic...odes-key-codes
    While this does disable the opening of the tabs, this also completely removes the detection of the key being pressed. I need the detection of the fkeys still, just without the opening of the game tabs. It must be somewhere else in class323_sub1 possibly?
    Reply With Quote  
     

  10. #10  
    Donator


    Join Date
    Jul 2011
    Posts
    570
    Thanks given
    135
    Thanks received
    142
    Rep Power
    291
    Quote Originally Posted by lilquickguy View Post
    While this does disable the opening of the tabs, this also completely removes the detection of the key being pressed. I need the detection of the fkeys still, just without the opening of the game tabs. It must be somewhere else in class323_sub1 possibly?
    So he gave you the method. If that disables detection, look inside and see what it does when detected...? Then modify it based upon what you want. (You can change the key code to w.e you want or the code inside the brackets)
    Reply With Quote  
     

Page 1 of 3 123 LastLast

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. Key Actions [Creating Custom Packet]
    By dan0194 in forum Snippets
    Replies: 9
    Last Post: 08-19-2014, 05:57 AM
  2. Function Keys galkons client
    By Hiken jr in forum Help
    Replies: 0
    Last Post: 09-07-2013, 07:37 PM
  3. Combat Interface & Action Keys
    By .alycia in forum Show-off
    Replies: 51
    Last Post: 05-07-2013, 01:31 PM
  4. Function Keys
    By Ashley in forum Help
    Replies: 0
    Last Post: 10-24-2012, 01:39 AM
  5. Function Key Changing
    By leojwinter [Jake] in forum Help
    Replies: 4
    Last Post: 03-16-2012, 09:43 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
  •