コード例 #1
0
        private void DefineSlowHotkeyClick(object sender, RoutedEventArgs e)
        {
            HotKeyHook.OnMouseButton += (ETWController.Hooking.MouseButton button, int x, int y) =>
            {
                HotKeyHook.DisableHooks();
                Model.SlowEventHotkey = button.ToString("G");
            };
            HotKeyHook.OnKeyDown += (Key key) =>
            {
                HotKeyHook.DisableHooks();
                Model.SlowEventHotkey = key.ToString("G");
            };

            HotKeyHook.EnableHooks();
        }