如何以编程方式触发C#鼠标左键点击?
问题描述:
我怎么能编程触发鼠标左键单击事件?
How could I programmatically trigger a left-click event on the mouse?
感谢。
编辑:事件不是上的按钮直接触发。我的目标为Windows平台。
edit: the event is not triggered directly on a button. I'm aiming for the Windows platform.
答
的 http://www.pinvoke.net/default.aspx/user32.sendinput
使用的Win32 API发送的输入。
use Win32 API to send input.