I would like to know how to get keyboard input in my delphi application while its not focussed.
The application i am programming is going to be taking a screenshot while i am in game.
I have wrote the screen capture code but i am missing this last piece any advice would be appreciated.
You can register a hotkey (using the RegisterHotKey and UnregisterHotKey functions) and use the
WM_HOTKEYmessage to intercept when the key is pressed.Try this sample