模拟按键

dim wsh
set wsh=createobject("wscript.shell")
wsh.run "notepad.exe"
wsh.run "calc.exe"
wsh.appactivate "notepad.exe"
wsh.sendkeys"4"

wsh.sendkeys"3"
wsh.sendkeys"2"
wsh.sendkeys"1"
原文地址:https://www.cnblogs.com/hellowzd/p/6408834.html