'Fullscreen app prevents hotkeys

I've developed a WPF application that registers Hotkeys using com interop and processes them using WndProc.

The hotkeys work perfectly even when the application doesn't have focus. However, they don't work when certain fullscreen appications have focus (games). Is there a way for me to fix this?

Thanks!



Solution 1:[1]

Even though registered hotkeys are disabled, you might be able to process your hotkeys via a low level keyboard hook. They can be kind of tricky to implement right, but you can look at the AutoHotkey source to see how it handles hotkeys in a low level keyboard hook.

This is a good tutorial on setting up a low level keyboard hook in C#.

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 Glorfindel