想用批处理写一个程序 自动打开123.exe并在打开123.exe后在光标所指处输入123
1个回答
展开全部
@echo off
echo Dim wsh >a.vbs
echo set wsh = createobject("Wscript.shell") >>a.vbs
echo wsh.run 123.exe >>a.vbs
echo wscript.sleep 1000 >>a.vbs
echo wsh.sendKeys "1" >>a.vbs
echo wscript.sleep 300 >>a.vbs
echo wsh.sendKeys "2" >>a.vbs
echo wscript.sleep 300 >>a.vbs
echo wsh.sendKeys "3" >>a.vbs
echo wscript.sleep 300 >>a.vbs
a.vbs
del a.vbs
exit
echo Dim wsh >a.vbs
echo set wsh = createobject("Wscript.shell") >>a.vbs
echo wsh.run 123.exe >>a.vbs
echo wscript.sleep 1000 >>a.vbs
echo wsh.sendKeys "1" >>a.vbs
echo wscript.sleep 300 >>a.vbs
echo wsh.sendKeys "2" >>a.vbs
echo wscript.sleep 300 >>a.vbs
echo wsh.sendKeys "3" >>a.vbs
echo wscript.sleep 300 >>a.vbs
a.vbs
del a.vbs
exit
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询