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
--