My app will need to simulate a key being held down during some time. I don't know how many time. Can I use the sendinput API for this?
views:
313answers:
1
+1
A:
SendInput
can trigger events with INPUT
structures including KEYBDINPUT
. A KEYBDINPUT
can specify key up and key down events using virtual keys or scan codes. So you want to use SendInput
twice: send a key down event at the beginning, and a key up event at the end.
Kevin Conner
2010-01-19 00:37:36