Jump to content
  • Advertisement
Sign in to follow this  
cresty

Need some help...

This topic is 3741 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

So i wrote a program which keeps track of how many times the user have pressed each key and mousebutton and then saves the data to a file. Thought it would be interesting to see which key i press the most. Anyways how do i make it so that i can "catch" the events or whatever it's called when the window is not in focus? I have a hard time finding info about this becaue i dont' what this is called, catching events or something maybe? I would appreciate any help on this, thanks.

Share this post


Link to post
Share on other sites
Advertisement
You are effectively writing a keylogger. I've never written such software, but my understanding is that the term you are looking for is a "system hook" or "keyboard hook". You should bear in mind that this kind of software is often frowned upon due to the privacy implications of a keylogger.

If your only interest is in which keys you press most often, there are many keyloggers already written that are available on the Internet.

Share this post


Link to post
Share on other sites
I know there already are some keyloggers out there. Thought i would write my own for fun/learning.

I can't really prove that it's for personal puposes only but oh well.

Thanks for your help ^^

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!