• Amused
  • Angry
  • Annoyed
  • Awesome
  • Bemused
  • Cocky
  • Cool
  • Crazy
  • Crying
  • Down
  • Drunk
  • Embarrased
  • Enraged
  • Friendly
  • Geeky
  • Godly
  • Happy
  • Hateful
  • Hungry
  • Innocent
  • Meh
  • Piratey
  • Poorly
  • Sad
  • Secret
  • Shy
  • Sneaky
  • Tired
  • Wtf
  • At Work
  • CodenzHub
  • Coding
  • Deejaying
  • Donating
  • Drinking
  • Eating
  • Editing
  • Hacking
  • Hate Mailing
  • Jamin'
  • Lagging
  • Live Streaming
  • Lurking
  • No Status
  • Pawning
  • PC Gaming
  • PS Gaming
  • Raging
  • Reversing
  • Sleeping
  • Steam Gaming
  • Trolling
  • TwitchStreamer
  • Vodka!
  • Watching TV/Movie
  • Xbox Gaming
  • Youtuber
  • Zombies
  • Results 1 to 9 of 9
    1. #1
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      madskills's Avatar
      Join Date
      Oct 2012
      Posts
      4
      Thanks (-->)
      0
      Thanks (<--)
      0

      how to lock navigation keys when d3d menu is hidden

      Silent VPN
      how to lock navigation keys when d3d menu is hidden?
      below is the code im using for key navigation.
      TIA



      {
      if (GetAsyncKeyState(VK_INSERT)&1) Mvisible=(!Mvisible);
      if (!Mvisible) return;


      if (GetAsyncKeyState(VK_UP)&1) {
      do {
      Mpos--;
      if (Mpos<0) Mpos=Mmax-1;
      } while (MENU[Mpos]->typ==MENUTEXT);

      } else if (GetAsyncKeyState(VK_DOWN)&1) {
      do {
      Mpos++;
      if (Mpos==Mmax) Mpos=0;
      } while (MENU[Mpos]->typ==MENUTEXT);

      } else if (MENU[Mpos]->var) {
      int dir=0;

      if (GetAsyncKeyState(VK_LEFT )&1 && *MENU[Mpos]->var > 0 ) dir=-1;
      if (GetAsyncKeyState(VK_RIGHT)&1 && *MENU[Mpos]->var < (MENU[Mpos]->maxvalue-1)) dir=1;
      if (dir) {
      *MENU[Mpos]->var += dir;
      if (MENU[Mpos]->typ==MENUFOLDER) Mmax=0;
      if (MENU[Mpos]->typ==MENUCAT) Mmax=0;
      }
      }
      }

    2. #2
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      AlexSleyore's Avatar
      Join Date
      Oct 2012
      Location
      http://fadedengine.wordpress.com/
      Posts
      101
      Thanks (-->)
      3
      Thanks (<--)
      10
      I would assume that depends on the game.. there is more then likely a built in Lock Keys address that gets set when you bring up the escape menu, you could look for that.

    3. #3
      Kim Kong Trasher
      I don't have status.
       
      Raging
       
      c5's Avatar
      Join Date
      Jul 2012
      Location
      Mankei Iland
      Posts
      1,221
      Thanks (-->)
      97
      Thanks (<--)
      492
      It should lock the navigation keys, since line3 returns from the function if the menu is hidden
      how to lock navigation keys when d3d menu is hidden

    4. #4
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      AlexSleyore's Avatar
      Join Date
      Oct 2012
      Location
      http://fadedengine.wordpress.com/
      Posts
      101
      Thanks (-->)
      3
      Thanks (<--)
      10
      Quote Originally Posted by c5 View Post
      It should lock the navigation keys, since line3 returns from the function if the menu is hidden
      and thats why I misread and though he wanted to lock the games movements (so you dont walk around like a dip turning stuff on and off..) but yeah your right on your reading.

    5. #5
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      madskills's Avatar
      Join Date
      Oct 2012
      Posts
      4
      Thanks (-->)
      0
      Thanks (<--)
      0
      thanks for the fast replies, will try it again later.
      Last edited by madskills; 11-27-2012 at 05:11 AM.

    6. #6
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      madskills's Avatar
      Join Date
      Oct 2012
      Posts
      4
      Thanks (-->)
      0
      Thanks (<--)
      0
      maybe i ll re phrase my question
      .Every time the menu is hidden when i toggle arrow keys , items in the menu turns on/off.
      now my question is
      how to lock navigation keys (on the menu itself) when d3d menu is hidden.

    7. #7
      Kim Kong Trasher
      I don't have status.
       
      Raging
       
      c5's Avatar
      Join Date
      Jul 2012
      Location
      Mankei Iland
      Posts
      1,221
      Thanks (-->)
      97
      Thanks (<--)
      492
      Yes, I understood your question. You might want to check whether your variable Mvisible is working correctly since on the 3rd line you have a statement pretty much saying: "If menu is NOT visible, skip everything below in the function and return from it". So it seems okay from here
      how to lock navigation keys when d3d menu is hidden

    8. #8
      Coder
      Learning to hack games!
       
      Feeling Normal
       
      brinkz's Avatar
      Join Date
      Sep 2012
      Posts
      213
      Thanks (-->)
      5
      Thanks (<--)
      74
      Try if( GetAsyncKeyState( key ) & 0x8000 )

    9. #9
      Newbie
      Learning to hack games!
       
      Feeling Normal
       
      madskills's Avatar
      Join Date
      Oct 2012
      Posts
      4
      Thanks (-->)
      0
      Thanks (<--)
      0
      Silent VPN
      tried to reverse show/hide state . it did lock arrow keys when menu shown
      weird thing when i turn it back , some of the menu items still can be toggled when menu is hidden


      @siM
      tried ur suggestion menu blinking still same problem

    Similar Game Hacker Threads

    1. The Hidden Hacks The Hidden Aimbot ESP Speedhack
      By kaz in forum Other Game Hacks
      Replies: 10
      Last Post: 01-27-2017, 06:58 PM
    2. [Help] Hidden Entity?
      By vikingtiger911 in forum Assault Cube Hacks
      Replies: 3
      Last Post: 05-11-2016, 03:33 PM
    3. Bhop breaks with other keys pressed
      By iPwned in forum Visual Basic
      Replies: 6
      Last Post: 03-31-2015, 06:10 PM
    4. D3D Menu
      By AlphaAnonymous in forum Direct-X, OpenGL
      Replies: 5
      Last Post: 08-19-2012, 03:43 PM