开发者

Emulate keyboard

How can I emulate keyboard in application running in background (hidden in tray). I want to press, hold, and relase keys on keyboard programatically. Also, I would like to开发者_如何学C move mouse around and be able to click.


You can use SendInput API function


You can also try the Windows.Forms.SendKeys API

Here is a How-To: How to: Simulate Mouse and Keyboard Events in Code

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜