Jump to content

Simulate input/Keyboard: Difference between revisions

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 individual application.
<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=”)
308

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.