VK_NUMPAD0 - 9, no qoutes
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
Last edited by kibbles18; 07-10-2011 at 07:06 PM.
Don't wrap VK_NUMPAD1 with those quotes.
hack2learn (07-10-2011)
ON TOPIC:
if you want to do a Hotkey on number pad one then it would like this:
and it's simply that.Code:if(GetAsyncKeyState(VK_NUMPAD1) &1) { // your code here... }