模拟按键

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"

 

posted @ 2017-02-17 10:52  fleam  阅读(186)  评论(0编辑  收藏  举报