private static void SetHotkey(Keys value) { PTHotKeyManager.UnregisterHotKey(HotkeyID); Program.Config.CustomConfig.SetString(Config_Hotkey, value.ToString()); if (value != Keys.None) { HotkeyID = PTHotKeyManager.RegisterHotKey(value); } }
private void HotkeysDeactivate() { PTHotKeyManager.HotKeyPressed -= HotKeyPressed; if (Config.AATHotkey != Keys.None) { PTHotKeyManager.UnregisterHotKey(Config.AATHotkeyID); } if ((Config.PWOnlyHotkey != Keys.None) && !Config.KPAutoTypePWPossible) { PTHotKeyManager.UnregisterHotKey(Config.PWOnlyHotkeyID); } }
internal static void Cleanup() { PTHotKeyManager.UnregisterHotKey(HotkeyID); }