Hi all,
I want my console to run in the background, and take in user input. It works like this:
1) The console starts.
2) The user moves to another active screen(say a web browser)
3) Now, I need the console to store all the user's key strokes in a file(I'm done with this part), even though the console is not active at the moment.
So, the problem I am facing is simple: I need to capture a user's keystrokes, even when the console window is not the active window. It needs to effectively run in the background.
The way you are trying to do it won't work.
Google around "keylogger" for more.
Frankly, I don't get why so many people find this kind of program so fascinating. I don't know of any good or useful programs that do this kind of stuff.