找了个路由器自动登陆批处理代码如下:- @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当成变量了;
问题二:中文输入状态下,这个程序无法输入用户和密码; |