public static void SendKeyEvent(MyKeyboardEvent ke, Keys k) { keybd_event((byte)k, 0x45, KEYEVENTF_EXTENDEDKEY | (uint)ke.ToSendKeyEventInternal().Value, 0); }
public static void SendKeyDownUp(Keys k) { MyKeyboardEvent ke = new MyKeyboardEvent(MyKeyboardEvent.KeyStatus.Down); SendKeyEvent(ke, k); ke.KeyStat = MyKeyboardEvent.KeyStatus.Up; SendKeyEvent(ke, k); }