PressNKeys Method
Key's scan code.
Nmber of times the key is pressed.
Simulates pressing a key the specified number of times.
Remarks
Use virtual keys, not characters. The Custom Server is responsible for placing the cursor at the desired location in the control before invoking this method.

You can also simulate keystrokes using the System.Windows.Forms.SendKeys class methods.

Syntax
'Declaration
 
Public Sub PressNKeys( _
   ByVal ScanCode As System.Byte, _
   ByVal N As System.Integer _
) 
public void PressNKeys( 
   System.byte ScanCode,
   System.int N
)

Parameters

ScanCode
Key's scan code.
N
Nmber of times the key is pressed.