I have used keybd_event to simulate keyboard actions and it
works well most of the time, but I am having problems when
I try to simulate the combination of SHIFT with cursor motions.
When notepad has the keyboard focus for example, the cursor
moves, but the text is not selected even though the SHIFT key
has been simulated to be pressed.
How can I modify my keystroke simulation to fully emulate the
process of
press SHIFT , press CursorDown, release CursorDown, release SHIFT
The keybd_event does work for other purposes which use the shift
key such as typing capital letters and special characters such as '#' or '$'.
Start Free Trial