設置WshShell = WScript。CreateObject("WScript。外殼”)
WshShell。運行“計算”
WScript。睡眠100
WshShell。AppActivate“計算器”
WScript。睡眠100
WshShell。SendKeys "1{+} "
WScript。睡眠500
WshShell。發送鍵“2”
WScript。睡眠500
WshShell。SendKeys "~ "
WScript。睡眠500
WshShell。發送鍵" *3 "
WScript。睡眠500
WshShell。SendKeys "~ "
WScript。睡覺2500
描述:~或{ENTER}是回車。