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); }
private void KeyboardEvent(ref KeyboardHook.StateKeyboard state) { TBRight.Text = state.Key + " " + state.Time; }