在C#中的鼠标操作(右键单击,左键单击...)

问题描述:

大家好

您可以使用Pinvoke实现此功能:

http://pinvoke.net/default.aspx/user32.sendinput [ http://msdn.microsoft.com/en-us/library/ms171548.aspx [ ^ ]
You could use Pinvoke to achieve this:

http://pinvoke.net/default.aspx/user32.sendinput[^]

Or by following this MSDN link

http://msdn.microsoft.com/en-us/library/ms171548.aspx[^]


[DllImport("user32.Dll")]
       public static extern int keybd_event(byte ch, byte scan, int flag, int info);



使用此键盘事件,您可以做到

希望此链接可以帮助您
语音识别 [



using this key board event u can do it

hope this link may help u
Speech Recognition[^]

msdn.microsoft.com/en-us/library/windows/desktop/ms646304(v=vs.85).aspx