System.Diagnostics.Process process = new System.Diagnostics.Process();
process 
= System.Diagnostics.Process.Start("mspaint.exe", path);
int processId = process.Id;

AutomationElement element 
= FindWindowByProcessId(processId);
System.Windows.Forms.SendKeys.SendWait(
"^s");       //发送 Ctrl + s 键
System.Windows.Forms.SendKeys.SendWait("%{F4}");      // 发送 Alt + F4 键

相关文章:

  • 2022-12-23
  • 2022-02-20
  • 2021-08-03
  • 2021-12-05
  • 2021-11-27
  • 2021-06-15
  • 2021-11-11
  • 2021-08-15
猜你喜欢
  • 2022-12-23
  • 2021-11-12
  • 2021-07-18
  • 2022-02-07
  • 2021-07-13
  • 2022-02-09
  • 2021-08-27
相关资源
相似解决方案