saulite
asked on
Enter key emulation trough Windows messages
I need to know, how i can send 'ENTER' key signal using windows messages (WM_KEYDOWN/WM_KEYUP or WM_CHAR).
Wich message(s) should i use?
What must be in wParam and what in lParam?
That's all. A very simple queston.
Wich message(s) should i use?
What must be in wParam and what in lParam?
That's all. A very simple queston.
ASKER
i need to send message to ANOTHER program. If i'd need to send to my program, i'd used keybd_event.
can i send VK_RETURN using WM_CHAR? if yes, then how, if not - how i can do this using WM_KEYDOWN combining with WM_KEYUP.
can i send VK_RETURN using WM_CHAR? if yes, then how, if not - how i can do this using WM_KEYDOWN combining with WM_KEYUP.
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
However, check out the keybd_event() function - or the SendInput() function if you're only coding for Win2000/NT. Are you looking for something like that by any chance?
Good luck!