Ejemplo n.º 1
0
 /// <summary>
 /// send a key up event for a key
 /// </summary>
 /// <param name="key">the key to send the event for</param>
 public static void KeyUp(VK key)
 {
     LowLevel.SendKeyboardEvent(key, 0, LowLevel.FLAG_KEY_UP, 0);
 }
Ejemplo n.º 2
0
 /// <summary>
 /// send a key down event for a key
 /// </summary>
 /// <param name="key">the key to send the event for</param>
 public static void KeyDown(VK key)
 {
     LowLevel.SendKeyboardEvent(key, 0, LowLevel.FLAG_KEY_DOWN, 0);
 }