标题: [其他] 路由器自动登陆ierunner.sendkeys无法输入符号% [打印本页]
作者: winsfly 时间: 2020-7-17 14:47 标题: 路由器自动登陆ierunner.sendkeys无法输入符号%
找了个路由器自动登陆批处理代码如下:- @echo off
- < "%~f0" more +4 > t.vbs
- cscript //nologo t.vbs & del t.vbs
- goto :eof
- set ierunner = CreateObject("wscript.shell")
- ierunner.run "cmd /c start explorer http://192.168.1.1",0
- wscript.sleep 1000
- ierunner.sendkeys "CMCCAdmin"
- ierunner.sendkeys "{TAB}"
- wscript.sleep 1000
- ierunner.sendkeys "aDm8H%MdA"
- ierunner.sendkeys "{TAB}"
- ierunner.sendkeys "{ENTER}"
复制代码
问题一:其它都没问题,但是输入密码时,无法输入%M 应该是把%M当成变量了;
问题二:中文输入状态下,这个程序无法输入用户和密码;
欢迎光临 批处理之家 (http://bbs.bathome.net/) |
Powered by Discuz! 7.2 |