powershell - 如何在powershell中发送ctrl + `

标签 powershell winforms sendkeys

我想使用 powershell 发送击键 ctrl + ` (不是 ~),但似乎无法让它工作.

我已经尝试过以下方法,但效果不佳。

[System.Windows.Forms.SendKeys]::SendWait("^{`}")
[System.Windows.Forms.SendKeys]::SendWait("^{\`}")

最佳答案

你试过这个吗?

[System.Windows.Forms.SendKeys]::SendWait('^`')

关于powershell - 如何在powershell中发送ctrl + `,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/28292304/

相关文章:

java - Selenium driver.findElement 查找元素,sendKeys 有效,然后在移动到新字段时清空

powershell - powershell cmdlet 的枚举参数

powershell - 如何从命令行检测我是否在 powershell 中?

windows - 需要帮助通过 powershell 删除默认的 Windows 10 应用程序

c# - 如何在单击按钮时绘制矩形?

c# - 在 PictureBox 上绘制折线

sql-server - 无法获取 ManagedComputer 的 smo 对象

vb.net - 当表单具有背景图像时,如何解决控件不必要的闪烁?

c# - 使用 SendKeys 发送特殊字符

Python 和 Selenium - 当 send_keys() 带有换行符时避免提交表单