Click here to Skip to main content
15,887,746 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
I know the virtual-key code of normal "Enter" is VK_RETURN.
Now I want to synthesize the "Enter" in NUMPAD zone on Keyboard,
but I can't find any info in MSDN.

What I have tried:

These links may save your time.
SendInput:
https://msdn.microsoft.com/zh-cn/windows/hardware/ms646310(v=vs.89)
INPUT
https://msdn.microsoft.com/zh-cn/windows/hardware/ms646270(v=vs.89)
KEYBDINPUT
https://msdn.microsoft.com/zh-cn/windows/hardware/ms646271(v=vs.89)
virtual-key code
https://msdn.microsoft.com/zh-cn/windows/hardware/dd375731(v=vs.89)
Posted
Updated 22-May-16 20:10pm
v5
Comments
Richard MacCutchan 21-May-16 11:06am    
What do you mean by "synthesize the "Enter" in NUMPAD zone"?
LubinLew 21-May-16 18:38pm    
Another Enter on the keyboard,around by '+' '3' 'Del'
Richard MacCutchan 22-May-16 3:06am    
It sends the same VK_ message as the normal enter.

1 solution

resolved

dwFlags |= KEYEVENTF_EXTENDEDKEY;
KEYBDINPUT structure (Windows)[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900