void AddHotKeyAction(uint modifiers, Keys key, string text, Action action) { var lparam = new IntPtr(modifiers | ((uint)key * 0x10000)); RegisterHotKey(this.Handle, (Int32)lparam, modifiers, Convert.ToUInt32(key)); hotKeyActions[lparam] = new Tuple<string, Action>(text, action); }