Anchal Sarraf
Anchal Sarraf

Reputation: 3909

How to pass keyboard shortcut to command prompt using powershell script

enter image description here

I need to enter Ctrl-Y here using PowerShell script, in order to automate this task. please let me know how this can be done.

Any suggestions are welcome.

Upvotes: -1

Views: 556

Answers (1)

try something like this:

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

Upvotes: 1

Related Questions