Can I raise a keydown event without using the keyboard?

T

Tanya

I use a touch screen and I want to simulate a keydown event every time
the user starts typing. Is it possible or I have to use API calls?
 
A

Amit

Typing from where?.. a soft keyboard or external one?
As for raising a keyboard event check out keybd_event()
Regards
Amit
Tanya said:
I use a touch screen and I want to simulate a keydown event every time
the user starts typing. Is it possible or I have to use API calls?
 
N

Nicholas Paldino [.NET/C# MVP]

Amit,

This function has been superceeded in NT 4.0 and above. One should use
SendInput in order to achieve this.

--
- Nicholas Paldino [.NET/C# MVP]
- (e-mail address removed)

Amit said:
Typing from where?.. a soft keyboard or external one?
As for raising a keyboard event check out keybd_event()
Regards
Amit
 
A

Amit

Right..:)
Forgot to mention it....:-(
Regards
-Amit
Nicholas Paldino said:
Amit,

This function has been superceeded in NT 4.0 and above. One should use
SendInput in order to achieve this.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top