Hi,
Yesterday I started creating an application that would interact with an psx emulator and then send key combinations to it when the user presses key X, like a shortcut...
I did it today.. well, sort of... I created a hook to the target application, and then wrote a function in a dll that should listen to windows messages sent to the emulator, filter it, compare it to key X, and if true, send a key combination to the target application, or else let the key pass unchanged. Some kind of code injection I believe...
It kinda works to a certain extend... As you probably guessed this increased the amont of processing windows has to do for each message, making the target application horribly slow and almost making everything useless...
I thought about creating an application that would just send keys to the top window, but this way I would not be able to send the key combination only when the user presses key X... I also thought of hooking the application to the target, send the key combination without waiting for any messages and then unhook it, kind of a "send combination to window X" button.
I dont know, at least until now, of any other way to do it... I need someway of doing it faster and better...
Im just asking for directions... It may be something simple, but this is the first time I doing it. What technique should I use? Have you ever done something similar before? If so, what is the best approach? There must be some technique used in order to accomplish this kind of thing...
Thanks.



LinkBack URL
About LinkBacks


