private void InitHotKey() { for (int i = 0; i < this.Name.Length; i++) { hotchar = (uint)this.Name.ToUpper()[i]; if (hotchar == ' ') { hotchar = 0; continue; } bool b = HotKeyRegister.GetHotKeyRegister().RegisterHotKey(Util.ModifierKeys.MOD_WIN, (Keys)hotchar, this); if (b) { break; } } if (hotchar != 0) { labelDescription.Text = labelDescription.Text + " ( Shortcut Win+" + (char)hotchar + " )"; } else { labelDescription.Text = labelDescription.Text + " ( No Shortcut registered. )"; } }
private void InitHotKey() { HotKeyRegister.GetHotKeyRegister().RegisterHotKey(Util.ModifierKeys.MOD_WIN, HOTKEY_EXEC, this); HotKeyRegister.GetHotKeyRegister().RegisterHotKey(Util.ModifierKeys.MOD_WIN, HOTKEY_SHOW, this); }