好的,所以我正在尝试编写一个程序,将记事本带到前台,然后使用SendKeys方法将文本打印到它。问题是
`set WshShell = CreateObject("Wscript.Shell")
Wscript.sleep 10000
WshShell.AppActivate "Untitled - Notepad"
Wscript.sleep 1000
WshShell.Sendkeys "Essay Finisher 2.5.5"
Wscript.sleep 100
WshShell.Sendkeys "{ENTER}"
WshShell.Sendkeys "Checking for updates"
Wscript.sleep 100
WshShell.Sendkeys "."
Wscript.sleep 100
WshShell.Sendkeys "."
Wscript.sleep 100
WshShell.Sendkeys "."
Wscript.sleep 100
WshShell.Sendkeys "{BACKSPACE}"
WshShell.Sendkeys "{BACKSPACE}"
WshShell.Sendkeys "{BACKSPACE}"
Wscript.sleep 100
WshShell.Sendkeys "."
Wscript.sleep 100
WshShell.Sendkeys "."
Wscript.sleep 100
WshShell.Sendkeys "."
Wscript.sleep 100
WshShell.Sendkeys "{BACKSPACE}"
WshShell.Sendkeys "{BACKSPACE}"
WshShell.Sendkeys "{BACKSPACE}"
WshShell.Sendkeys "."
Wscript.sleep 100
WshShell.Sendkeys "."
Wscript.sleep 100
WshShell.Sendkeys "."
Wscript.sleep 100
WshShell.Sendkeys "{BACKSPACE}"
WshShell.Sendkeys "{BACKSPACE}"
WshShell.Sendkeys "{BACKSPACE}"
WshShell.Sendkeys "."
Wscript.sleep 100
WshShell.Sendkeys "."
Wscript.sleep 100
WshShell.Sendkeys "."
Wscript.sleep 100
WshShell.Sendkeys "{BACKSPACE}"
WshShell.Sendkeys "{BACKSPACE}"
WshShell.Sendkeys "{BACKSPACE}"
WshShell.Sendkeys "."
Wscript.sleep 100
WshShell.Sendkeys "."
Wscript.sleep 100
WshShell.Sendkeys "."
Wscript.sleep 100
WshShell.Sendkeys "{BACKSPACE}"
WshShell.Sendkeys "{BACKSPACE}"
WshShell.Sendkeys "{BACKSPACE}"
Wscript.sleep 100
WshShell.Sendkeys "No updates found"
WshShell.Sendkeys "{ENTER}"
Wscript.sleep 1000
WshShell.Sendkeys "Beginning text recognition engine..."
Wscript.sleep 3000
WshShell.Sendkeys "Text recognition engine started successfully"
WshShell.Sendkeys "{ENTER}"
WshShell.Sendkeys "Please type the beginning sentence of your essay: you have 30 seconds"
Wscript.sleep 30000
WshShell.Sendkeys "{ENTER}"
WshShell.Sendkeys "Sentence recognition complete, please wait"
Wscript.sleep 200`
结果如下:Essay FinisheRE s2s.a5y。 5Finisher 2.5.5 检查f 或UCPhdeactkeisng更新未找到更新 没有找到更新 开始文本reCBOeggniintniionng etnegxitn er.e.c.ognition engine ... Text recognitiOTNe xetn grineec osgtnairttieodn seuncgcienses fsutlalryt eDP lseuacscee stsyfpuel lty hEP lbeeagsien ntiynpge stehnet ebnecgei nonfi nygo usre netsesnacye:O fy oyuo uhra vees s3a0y:Se cyoonud shave 30秒 什么时候应该导致: Essay Finisher 2.5.5 检查更新...(这里有一个很好的动画)没有找到更新 开始文本识别引擎...文本识别引擎启动 无论如何,你明白了。 我怎样才能解决这个问题?提前谢谢!