SendInput() Keyboard letters C/C++

前端 未结 4 1429
终归单人心
终归单人心 2020-12-20 13:26

I am trying to use SendInput() to send a sentence to another application (Notepad) and then send it hitting the Enter Key.

Any code snippets?

4条回答
  •  独厮守ぢ
    2020-12-20 13:59

    Theres a simple C++ sample here http://nibuthomas.wordpress.com/2009/08/04/how-to-use-sendinput/

    And a more complete VB sample here http://vb.mvps.org/samples/SendInput/

提交回复
热议问题