Simulate input/Keyboard: Difference between revisions
→{{header|PowerShell}}
Line 401:
=={{header|PowerShell}}==
The Start-Sleep CmdLet must be used because no application loads instantaneously. The -Milliseconds parameter should be
adjusted accordingly for every
<lang PowerShell>
Add-Type -AssemblyName Microsoft.VisualBasic
Line 407:
calc.exe
Start-Sleep -Milliseconds 300
[Microsoft.VisualBasic.Interaction]::AppActivate(“Calc”)
[System.Windows.Forms.SendKeys]::SendWait(“2{ADD}2=”)
|