Пример #1
0
 private static void KeyboardEvent(ref KeyboardHook.StateKeyboard state)
 {
     if (DateTime.Now.Ticks < lastMove + Consts.HookTimeSpan.Ticks)
     {
         return;
     }
     lastMove = DateTime.Now.Ticks;
     Data.Actions actions = new Data.Actions
     {
         DateTime = DateTime.Now,
         Type     = 1,
         Action   = "Keyboard",
         Title    = state.Key.ToString()
     };
     Data.AddActions(actions);
 }
Пример #2
0
 private void KeyboardEvent(ref KeyboardHook.StateKeyboard state)
 {
     TBRight.Text = state.Key + " " + state.Time;
 }