I need to record keystrokes (if user pressed 'ABCS', I wand that saved in a string) if the user switches to a certain window which is name is AAA, the windows is not of the current application, but can be of any other one.
I guess I know how to get the current window name, its something like that:
#include <windows.h>
// ...
TCHAR buf[255];
GetWindowText(GetForegroundWindow(), buf, 255);
But how to record the keys, I have no idea.
Thanks,