Trap and remap a key for a specific application
-
I require some assistance with a unique problem, and as I am not much in the way of an Win32 API programmer, was hoping someone could help me out. I am configuring an application for a customer that would like a hotkey setup for a specific program function; however, the application itself does not support the space bar as a hotkey. I was looking at maybe trapping the space bar for this specific application and remapping the key as a hotkey that it does support (like F12), but leaving the space bar functionality intact for other programs also running. I have no idea how to go about doing this, whether it can be done, or if it is even the best solution for the problem. I do not have access to the application code for which I am trying to add this additional support to. Does anyone have any suggestions? Thanks :confused:
-
I require some assistance with a unique problem, and as I am not much in the way of an Win32 API programmer, was hoping someone could help me out. I am configuring an application for a customer that would like a hotkey setup for a specific program function; however, the application itself does not support the space bar as a hotkey. I was looking at maybe trapping the space bar for this specific application and remapping the key as a hotkey that it does support (like F12), but leaving the space bar functionality intact for other programs also running. I have no idea how to go about doing this, whether it can be done, or if it is even the best solution for the problem. I do not have access to the application code for which I am trying to add this additional support to. Does anyone have any suggestions? Thanks :confused:
Refer PretranslateMessage() is mSDN and u will find the answer for that probably !!! Cause is my effort; Effect is God's effort