Simulate input/Keyboard: Difference between revisions

Content added Content deleted
(→‎{{header|REXX}}: added the REXX language.)
No edit summary
Line 398: Line 398:
<pre>12.50</pre>
<pre>12.50</pre>
The same example is used in the related task [[Simulate input/Mouse#PicoLisp]].
The same example is used in the related task [[Simulate input/Mouse#PicoLisp]].

=={{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
Add-Type -AssemblyName System.Windows.Forms
calc.exe
Start-Sleep -Milliseconds 300

[Microsoft.VisualBasic.Interaction]::AppActivate(“Calc”)
[System.Windows.Forms.SendKeys]::SendWait(“2{ADD}2=”)
</lang>

{{Out}}
<pre>
</pre>


=={{header|PureBasic}}==
=={{header|PureBasic}}==