Hi all,
At first, sorry for my poor english... not my mother language.
I am modifying an old application in VB6 which needs to send key strokes to another application.
I am sucessfully using the PostMessage windows API and it is working fine, but in some circunstances, the compiled application does not answer as expected to a Enter (ascii 13) sent.
Doing manual tests, I have found out that the compiled application answers to the enter key press on main keyboard but does not answer to enter key press in the numeric keypad.
Running this aplication monitored with Spy++ (with all the options enabled to be shown), the log line is the very same for Enter pressed in the main keyboard, the enter pressed in the numeric Keypad and also the VK_Return sent by the PostMessage call on my code.
So, I think Spy++ is not showing all the information exchanged between the keyboard and the compiled application, as the compiled application does not respond the same way to these events.
How can I diferentiate these two keys in the PostMessage API? Something must be sent in the lParam, but I dont know what.
Is there some tool more complete than the Spy++ which shows more informations about the messages?
Thanks in advance!
At first, sorry for my poor english... not my mother language.
I am modifying an old application in VB6 which needs to send key strokes to another application.
I am sucessfully using the PostMessage windows API and it is working fine, but in some circunstances, the compiled application does not answer as expected to a Enter (ascii 13) sent.
Doing manual tests, I have found out that the compiled application answers to the enter key press on main keyboard but does not answer to enter key press in the numeric keypad.
Running this aplication monitored with Spy++ (with all the options enabled to be shown), the log line is the very same for Enter pressed in the main keyboard, the enter pressed in the numeric Keypad and also the VK_Return sent by the PostMessage call on my code.
So, I think Spy++ is not showing all the information exchanged between the keyboard and the compiled application, as the compiled application does not respond the same way to these events.
How can I diferentiate these two keys in the PostMessage API? Something must be sent in the lParam, but I dont know what.
Is there some tool more complete than the Spy++ which shows more informations about the messages?
Thanks in advance!