Example #1
0
 public void ExtendedKeyDownWithScanCodeTest()
 {
     sender.ExtendedKeyDownWithScanCode(VirtualKeys.VK_LWIN);
     sender.ExtendedKeyUpWithScanCode(VirtualKeys.VK_LWIN);
     Assert.AreEqual(keyboardEvents[0].Item1, LowLevelKeyboardHook.Event.WM_KEYDOWN);
     Assert.AreEqual(keyboardEvents[0].Item2.vkCode, VirtualKeys.VK_LWIN);
     Assert.AreEqual(keyboardEvents[0].Item2.scanCode, (uint)VirtualKeys.VK_LWIN);
     Assert.IsTrue(keyboardEvents[0].Item2.flags.HasFlag(LowLevelKeyboardHook.FLAGS.LLKHF_EXTENDED));
 }