Warning: file_get_contents(/data/phpspider/zhask/data//catemap/2/powershell/13.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
如何发送ctrl+;`在powershell中_Powershell - Fatal编程技术网

如何发送ctrl+;`在powershell中

如何发送ctrl+;`在powershell中,powershell,Powershell,我想使用powershell发送按键ctrl+`(而不是~),但似乎无法使其正常工作 我试过以下方法,但效果不好 [System.Windows.Forms.SendKeys]::SendWait(“^{`}”) [System.Windows.Forms.SendKeys]::SendWait(“^{\`}”) 您试过这个吗 [System.Windows.Forms.SendKeys]::SendWait('^`') 在双引号字符串中,backroom用作转义字符。或者使用单引号字符串将其

我想使用powershell发送按键ctrl+`(而不是~),但似乎无法使其正常工作

我试过以下方法,但效果不好

[System.Windows.Forms.SendKeys]::SendWait(“^{`}”)
[System.Windows.Forms.SendKeys]::SendWait(“^{\`}”)
您试过这个吗

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

在双引号字符串中,backroom用作转义字符。或者使用单引号字符串将其加倍。反斜杠在这里没有任何用处,因为PowerShell除了在正则表达式中外,不使用反斜杠进行转义