I have a WPF application with registered global hotkey, using Admin privileges.
I used NHotkey (Source)
I tried using NHotkey.Wpf
HotkeyManager.Current.AddOrReplace("HotkeyAction", Key.F9, ModifierKeys.Alt, HotkeyAction);
^ Works in most of windows and applications, but not in some games and I have no idea why. Can it be because they have administrator privileges too?
Then I tried using NHotkey.WindowsForms;
HotkeyManager.Current.AddOrReplace("HotkeyAction", Keys.Alt | Keys.F9, HotkeyAction);
Same sitution, works everywhere except some games.
It is crucial for me to make it work everywhere globally, system-wide. I ran out of options.
How can I implement a global hotkey in my WPF application? I can switch development to console or winforms if it's required.