I'm writing an app that logs to a txt file every click and key pressed by the user on the system.
Any ideas how to achieve this? I've been doing some reading: SetWindowsHooksEx, GetMessage, PeekMessage, SubClassing, etc., but can't make it work.
I'd appreciate source code if possible.
Thanks in advance, Mq.
P.D.: Please be very explicit because I'm new in C++.