Any time that your form doesn't have focus you can't trap key presses using the usual means. You need to register a hotkey with the OS, which will then notify your app when that key is pressed. You should use more unusual key combinations to lessen the likelihood of clashing with other apps. ALWAYS use at least two modifier keys for a start.
The Windows API functions you need to use a RegisterHotkey and UnregisterHotkey. Do a web search and you'll find explanations and examples.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.