110,552
社区成员
发帖
与我相关
我的任务
分享
[System.Runtime.InteropServices.DllImport("user32.dll")]
public static extern void keybd_event(int bVk, byte bScan, int dwFlags, int dwExtraInfo);
static void Main(string[] args)
{
....
//发送ctrl+c
keybd_event(Convert.ToInt32(System.Windows.Forms.Keys.ControlKey), 0, 0, 0);
keybd_event(Convert.ToInt32(System.Windows.Forms.Keys.C), 0, 0, 0);
...
}