title: How do I use WScript.Shell SendKeys to send Number Pad key strokes?
body: <p>I am trying to use WScript.Shell SendKeys method to emulate sending a key press from the Number Pad.</p>
  <p>I have an application that I am writing automated testing for using QTP.  It is a Web Browser based application and the input is into a Java App within the web page.  The input only accepts key presses from the Number Pad and the Enter key.</p>
  <p>So far I am using this code:</p>
  <pre><code>Dim strInputKey
  strInputKey = &quot;{ENTER}&quot;
  Set objWsh = CreateObject(&quot;WScript.Shell&quot;)
  Browser(&quot;Launch Browser&quot;).Page(&quot;Test Application&quot;).WebElement(&quot;Item ID&quot;).Click
  objWsh.SendKeys strInputKey
  </code></pre>
  <p>This works fine for sending the Enter key, but I can't quite figure out if there is a way to send Number Keys.  Any help would be greatly appreciated.</p>
  <p>I am not sure if there are any undocumented ways of achieving this.   I have read <a href="http://msdn.microsoft.com/en-us/library/8c6yea83(VS.85).aspx" rel="nofollow noreferrer">http://msdn.microsoft.com/en-us/library/8c6yea83(VS.85).aspx</a> but it doesn't go into great detail.</p>