Answer the question
In order to leave comments, you need to log in
How to write a simple powershell keypress script?
You need to write a simple Powershell script. Task: Opening an application and pressing keys with expectation.
I would be grateful for any example.
Answer the question
In order to leave comments, you need to log in
run application with &
to press buttons, you can use WScript.Shell
$myshell = New-Object -com "Wscript.Shell"
$myshell.sendkeys("q")
Start-Sleep -m $delay
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question