title: Sending specific keys on the Numpad like +, -, / or Enter (simulating a keypress)
body: <p>I am working on a project where it is necessary to simulate key-presses to cause specific behaviours in a different application.</p>
  
  <p>All is running well and fine, using the keybd_event function that is being imported (there might be better ways, but it is working fine).</p>
  
  <p>Now I want to add specific support for all of the numpad.</p>
  
  <p>Looking e. g. here <a href="http://msdn.microsoft.com/en-us/library/dd375731(v=VS.85).aspx" rel="nofollow">http://msdn.microsoft.com/en-us/library/dd375731(v=VS.85).aspx</a> or in the System.Windows.Input.Key namespace, I can easily find keys for Num0..Num9, as well as for NumLock. But.. I cannot find anything for Num/, Num+, NumEnter etc.</p>
  
  <p>I wrote a quick froms app to catch the keydown event, outputting the event paramters, and got some interesting results:</p>
  
  <pre><code>e.KeyCode NumLock e.KeyData NumLock e.KeyValue 144 e.Modifiers None  
  e.KeyCode Divide e.KeyData Divide e.KeyValue 111 e.Modifiers None  
  e.KeyCode Multiply e.KeyData Multiply e.KeyValue 106 e.Modifiers None  
  e.KeyCode Subtract e.KeyData Subtract e.KeyValue 109 e.Modifiers None  
  e.KeyCode Add e.KeyData Add e.KeyValue 107 e.Modifiers None  
  e.KeyCode NumLock e.KeyData NumLock e.KeyValue 144 e.Modifiers None  
  e.KeyCode NumLock e.KeyData NumLock e.KeyValue 144 e.Modifiers None  
  e.KeyCode Divide e.KeyData Divide e.KeyValue 111 e.Modifiers None  
  e.KeyCode Multiply e.KeyData Multiply e.KeyValue 106 e.Modifiers None  
  e.KeyCode Subtract e.KeyData Subtract e.KeyValue 109 e.Modifiers None  
  e.KeyCode Add e.KeyData Add e.KeyValue 107 e.Modifiers None  
  e.KeyCode Return e.KeyData Return e.KeyValue 13 e.Modifiers None
  </code></pre>
  
  <p>The Num+ Key (and so on) seem to be keys that Windows calls function keys (like F18 for the Num+ key). So.. that is strange, but ok.</p>
  
  <p>But.. I cannot distinguish the Enter-Key from the NumEnter Key. Those are different for my application, so I have to send specific key-codes for both.</p>
  
  <p>And that is my question: how can I send an ordinary enter-key and how can I send a NumEnter key?</p>
  
  <p>(I don't know whether it makes any difference, I am on a German keyboard layout.)</p>
  
  <p>Thx for any ideas!</p>