public void Execute() { if (_events.Length > 0) { //InputSender.DispatchInput(_events); //showtime BOIS InputEventDispatcher.EnqueueEvents(_events); _lastTriggered = DateTime.Now; } }
private void frmMain_FormClosing(object sender, FormClosingEventArgs e) { if (hooked) { t.Abort(); Hooker.UnhookKeyboard(); Hooker.UnhookMouse(); //pressDelay.Close();//DEBUG //nextKeyDelay.Close(); hooked = false; WindowMonitor.StopMonitorForeground(); InputEventDispatcher.DisposeIt(); Application.Exit(); } }