开发者

Emulate keyboard

开发者 https://www.devze.com 2023-03-13 20:18 出处:网络
How can I emulate keyboard in application running in background (hidden in tray). I want to press, hold, and relase keys on keyboard programatically.

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

精彩评论

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