This Code should let press my Application the key '1' on my NumPad:
ctrlV[5].type = INPUT_KEYBOARD;
ctrlV[5].ki.wVk =0x61; //VK_NUMPAD1
ctrlV[6].type = INPUT_KEYBOARD;
ctrlV[6].ki.wVk =0x61; //OR VK_NUMPAD1
ctrlV[6].ki.dwFlags = KEYEVENTF_KEYUP;
SendInput(8, ctrlV, sizeof(INPUT));
It sends the key '1', although my NumLock is off. So my question is:
"How to simulate a keypress from the Number Pad ?"
I tried keyeventf_extendedkey;
too without luck.
Thanks in advance!