Search code examples
c#wpffullscreenhotkeys

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

  • The disabling of hotkeys is by design and as far as I know not much you can do about it.

    Full screen DirectX applications (typically games) will call IDirectDraw::SetCooperativeLevel with the DDSCL_FULLSCREEN and DDSCL_EXCLUSIVE flags which results in, amongst other things, the registered hotkeys being disabled.