6 lines
247 B
Text
6 lines
247 B
Text
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=”)
|