We made a keyboard ing tool over the past two days.

Source: Internet
Author: User
Because ides such as Delphi7 and VB6 do not support custom shortcut keys, but they are used from time to time, when switching from msdev, the confusion caused by different keyboard la S is enough to drive people crazy. To solve this problem, we decided to create a general tool to map shortcut keys.

The underlying technical idea is very simple, that is, when the Global keyboard hook is found to press the defined shortcut key, it is to play back its ing Shortcut Key sequence. However, many details must be considered in order to reach the general purpose. In addition, this is the first time that a hook is used, and the experience is insufficient. At the beginning, the multi-process debugging will be dizzy, because the trace is valid only when the debugging process is the current process. Later, I found an example on codeproject to output debugging information using the named pipeline.

ProgramI already have basic functions, but I still need to fully test them. When I feel OK for a while, I will share them with you.



---

Today, hook DLL is removed from MFC, and STL is removed to lose weight (with the addition of several fstream functions, 200 K is used, OMG .. but in the debug version), it is not a sin to use some simple packaging classes to replace the original library functions ..

I am going back to work overtime the day after tomorrow. I am afraid that I will not be so busy with these things. I will first put the binary file here and try it for anyone who needs it. Of course, if the system crashes, don't scold me.
If you need the source code, you can obtain it by email. The reason for not directly uploading is that you are afraid of being rude.

Click to download



--

Related Article

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.