Results 1 to 7 of 7
  1. #1
    hack2learn's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    My Mood
    Fine

    WHAT IS THE HOTKEYS SYNTAX FOR NUMPADS - DEV-C++

    i am very new in c++ dimension... my situation is, i want my applications closed when hit numpad 1... " if(GetAsyncKeyState('VK_NUMPAD1') " not working at all (it won't closing)... but when use capital letter as " if(GetAsyncKeyState('C'), it works fine... what exactly the syntax to use numpads as hotkey?...

  2. #2
    kibbles18's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    US
    Posts
    860
    Reputation
    5
    Thanks
    127
    VK_NUMPAD0 - 9, no qoutes
    Last edited by kibbles18; 07-10-2011 at 07:06 PM.

  3. #3
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Don't wrap VK_NUMPAD1 with those quotes.

  4. The Following User Says Thank You to Void For This Useful Post:

    hack2learn (07-10-2011)

  5. #4
    hack2learn's Avatar
    Join Date
    May 2011
    Gender
    male
    Posts
    13
    Reputation
    10
    Thanks
    0
    My Mood
    Fine
    Quote Originally Posted by kibbles18 View Post
    VK_NUMPAD0 - 9
    If you actually gave 2 shits youd know that vk_numpad is a defenition, not a char argument
    gave solution it's more better than shits....

    Quote Originally Posted by Void View Post
    Don't wrap VK_NUMPAD1 with those quotes.
    oh ok, i got it now....
    Last edited by hack2learn; 07-10-2011 at 02:57 PM.

  6. #5
    Auxilium's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    深い碧の果てに
    Posts
    4,518
    Reputation
    445
    Thanks
    609
    My Mood
    Happy
    Quote Originally Posted by kibbles18 View Post
    VK_NUMPAD0 - 9
    If you actually gave 2 shits youd know that vk_numpad is a defenition, not a char argument
    giving shits means caring about something. What if it is just a mistake?

  7. #6
    Void's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Inline.
    Posts
    3,198
    Reputation
    205
    Thanks
    1,445
    My Mood
    Mellow
    Quote Originally Posted by Virtual Void View Post


    giving shits means caring about something. What if it is just a mistake?
    Chillax bro, no need to get all hyped. I think he means he wouldn't make a stupid mistake like that.

  8. #7
    258456's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    ghjghj
    Posts
    1,222
    Reputation
    18
    Thanks
    300
    My Mood
    Relaxed
    ON TOPIC:



    if you want to do a Hotkey on number pad one then it would like this:

    Code:
    if(GetAsyncKeyState(VK_NUMPAD1) &1)
    {
    // your code here...
    }
    and it's simply that.

Similar Threads

  1. What are the Start Weapon for the solidier class?
    By xxSkull8xX in forum Battlefield Heroes Hacks
    Replies: 3
    Last Post: 07-17-2009, 11:45 PM
  2. What is the process name for Warrock?
    By gaspert in forum WarRock - International Hacks
    Replies: 1
    Last Post: 05-09-2009, 02:14 PM
  3. WHAT IS THE BEST PLACE FOR FREE HACKS??
    By chrisisafoo in forum Combat Arms Hacks & Cheats
    Replies: 8
    Last Post: 04-09-2009, 01:07 AM
  4. what are the hotkeys?
    By enk112 in forum Combat Arms Hacks & Cheats
    Replies: 5
    Last Post: 10-13-2008, 02:08 PM
  5. What is the best compiler for C++?
    By ip_ban in forum C++/C Programming
    Replies: 2
    Last Post: 07-26-2008, 04:29 PM

Tags for this Thread