private void DisableDynamic()
 {
     App.Current.Dispatcher.Invoke(() =>
     {
         keyboardHook.StopHook();
         mouseHook.DoubleClick -= OnMouseDoubleClicked;
         mouseHook.Dispose();
         Task.Run(() => SendKeys.Flush());
     });
 }