powershellwinformssendkeys

How to send ctrl + ` in powershell


I want to send the keystrokes ctrl + ` (not ~) using powershell, but can't seem to get it to work.

I've tried the following, but no good.

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

Solution

  • Have you tried this?

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