发送命令

来源:互联网 发布:ubuntu 如何编辑文件 编辑:程序博客网 时间:2024/06/03 21:29
//只是对于此函数的定义


        [DllImport("user32")]
       public static extern int SetForegroundWindow(IntPtr hwnd);
//应用
 SetForegroundWindow(comMain // 句柄);
            SendKeys.Send("^S");
0 0
原创粉丝点击