예제 #1
0
        public void StartListening()
        {
            if (IsListening)
            {
                return;
            }
            IsListening = true;
            int num = 0;

            foreach (HotkeyBinding binding in Program.BindingManager.Bindings)
            {
                if (binding.Enabled == false)
                {
                    continue;
                }
                Win32.RegisterHotKey(_handle, num++, HotkeyHelper.GetModifiers(binding.Hotkey.Ctrl, binding.Hotkey.Alt, binding.Hotkey.Shift), (uint)binding.Hotkey.Key);
            }
        }