Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Key events when not in focus

Status
Not open for further replies.

plastic

Programmer
Jul 11, 2002
24
GB
Hi there,
I was wondering if it was possible for a C++ application to receive key press events even though it wasn't in focus, but for the application that was in focus to still receive the key event. I imagine the last little part of that sentence will make it 10 times harder!!!
Thanks

Chris
 
Yes. You can make a keyboard logger that tracks every key pressed. The program would run in the background and not be seen by the user.
James P. Cottingham

When a man sits with a pretty girl for an hour, it seems like a minute. But let him sit on a hot stove for a minute and it's longer than any hour. That's relativity.
[tab][tab]Albert Einstein explaining his Theory of Relativity to a group of journalists.
 
OK, sorry I guess I didn't phrase the question right. What is the theory behind doing this?
Thanks

Chris
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top