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

Posts 1–7 of 7 · Page 1 of 1
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?...
VK_NUMPAD0 - 9, no qoutes
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?
Quote Originally Posted by Auxilium 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.
Don't wrap VK_NUMPAD1 with those quotes.
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....
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.
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

Talk with us