如何打开外部程序后执行外部程序的快捷键
代码打开外部程序已经没有问题,外部程序的快捷键如何弄呀
Dim textcxdz As String = e.Form.Controls("Textcxdz").text
Dim textwjlj As String = e.Form.Controls("Textwjlj").text
If textcxdz >"" And textwjlj>"" Then
Dim Proc As New Process
Proc.WaitForClose = False '逻辑型,设为True,直到关闭外部程序,才会执行接下来的代码.
Proc.File = textcxdz
Proc.Arguments = textwjlj
Proc.Start
Proc.WaitForInputIdle() '等程序自动结束并进入空闲状态
MessageBox.Show(textwjlj)
Sendkeys.Send("(^){Ctrl}+{DEL}") '发送按键信息'发送按键信息 这个地方如何表示 呀
Else
MessageBox.Show("请检查是否有输入程序地址或文件路径!")
End If
[此贴子已经被作者于2022/3/25 8:54:14编辑过]