How to simulate keyboard input in ALL applications?

后端 未结 3 1960
天涯浪人
天涯浪人 2021-02-08 21:50

I\'m writing an app (in C#) which as a part of it must simulate and send some key strokes to another application. I\'m using http://inputsimulator.codeplex.com/ project for simu

3条回答
  •  春和景丽
    2021-02-08 21:59

    Ok, I think I finally got it to work. I used API Monitor recommended by Neal P and it showed just minimal differences between OSK calls and mine. A bit later I've tried to make my calling thread sleep some time between sending messages with press and release key and that was it.

提交回复
热议问题