Advertisement

10.08.2003 at 01:15PM PDT, ID: 20761092
[x]
Attachment Details

Simulating SHIFT+DownArrow with keybd_event

Asked by bjornsone in Windows Programming

Tags: keybd_event, shift, capital

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
 
Keywords: Simulating SHIFT+DownArrow with ke…
 
Loading Advertisement...
 
[+][-]10.08.2003 at 01:37PM PDT, ID: 9516321

At Experts Exchange, members can ask their questions to thousands of technology professionals, also known as Experts. Experts compete and collaborate to answer those questions by leaving comments like this one.

Start your 7-day free trial to view this Expert Comment or ask the Experts your question.

 
[+][-]10.08.2003 at 01:54PM PDT, ID: 9516442

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
[+][-]10.08.2003 at 10:55PM PDT, ID: 9518574

View this solution now by starting your 7-day free trial. Setting up your free trial is quick, easy, and secure. We will return you to this solution, unlocked, when you're done.

 

About this solution

Zone: Windows Programming
Tags: keybd_event, shift, capital
Sign Up Now!
Solution Provided By: robert_marquardt
Participating Experts: 2
Solution Grade: A
 
 
[+][-]10.09.2003 at 08:46AM PDT, ID: 9521557

Often, when Experts are collaborating with members who have asked questions, they will request additional information about the problem. Askers respond with an author comment like this one.

Start your 7-day free trial to view this Author Comment or ask the Experts your question.

 
 
Loading Advertisement...
20080716-EE-VQP-32