Example #1
0
 public void ExtendedKeyDownTest()
 {
     sender.ExtendedKeyDown(VirtualKeys.VK_A);
     sender.ExtendedKeyUp(VirtualKeys.VK_A);
     Assert.AreEqual(keyboardEvents[0].Item1, LowLevelKeyboardHook.Event.WM_KEYDOWN);
     Assert.AreEqual(keyboardEvents[0].Item2.vkCode, VirtualKeys.VK_A);
     Assert.AreEqual(keyboardEvents[0].Item2.scanCode, 0x00U);
     Assert.IsTrue(keyboardEvents[0].Item2.flags.HasFlag(LowLevelKeyboardHook.FLAGS.LLKHF_EXTENDED));
 }