Count the number of keyboard inputs and mouse clicks

Source: Internet
Author: User

After searching for some hook information and the original code on the Internet, a friend suggested: How many mouse clicks a day?

Haha, with such a problem. The global mouse and keyboard hook are used.

 

Program: http://download.csdn.net/source/639043

 

Implemented functions:

1. count the number of left-click clicks from the start to the stop period (double-click is counted as two clicks), the number of right-click clicks, and the total number of clicks.

2. Count the characters entered by the keyboard from the start time to the end time.

3. Start the instance.

4. Hide automatically at startup. // Press Alt + Ctrl + S to display, ALT + Ctrl + H to hide the interface

5. Write logs: Save the mouse clicks and keyboard input information in the TXT file of the current directory.

 

For specific technologies, refer:

1. Hook programming (msdn): http://blog.csdn.net/andylin02/archive/2007/04/03/1550318.aspx

2. Hook programming example: http://blog.csdn.net/andylin02/archive/2007/04/03/1550323.aspx

3. hotkey display window: http://blog.csdn.net/andylin02/archive/2008/09/19/2952364.aspx

4. Getting started with message Hook Functions

5. programming example of system HOOK: http://blog.csdn.net/andylin02/archive/2008/09/11/2913769.aspx

 

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.