Global hotkeys in WPF working from every window
You can use the same approach as in WinForms with some adaptation: use WindowInteropHelper to get HWND (instead of Handle property of a form) use HwndSource to handle window messages (instead of overriding WndProc of a form) don’t use Key enumeration from WPF – it’s values are not the ones you want Complete code: [DllImport(“User32.dll”)] … Read more