【发布时间】:2020-07-08 11:07:58
【问题描述】:
在 powershell ISE 中尝试了以下代码,但它只接受第一个键(按 Win),之后它接受下一个键为“g”。
[void][Reflection.Assembly]::LoadWithPartialName("System.Windows.Forms")
[System.Windows.Forms.SendKeys]::sendwait("(^{ESCAPE})g")
但我想一次按 Win+g 来打开一些应用程序,例如 xbox 游戏栏。
有人可以指导我吗?
【问题讨论】:
标签: c# powershell automation powershell-ise pester