Board logo

标题: [其他] 路由器自动登陆ierunner.sendkeys无法输入符号% [打印本页]

作者: winsfly    时间: 2020-7-17 14:47     标题: 路由器自动登陆ierunner.sendkeys无法输入符号%

找了个路由器自动登陆批处理代码如下:
  1. @echo off
  2. < "%~f0" more +4 > t.vbs
  3. cscript //nologo t.vbs & del t.vbs
  4. goto :eof
  5. set ierunner = CreateObject("wscript.shell")
  6. ierunner.run "cmd /c start explorer http://192.168.1.1",0
  7. wscript.sleep 1000
  8. ierunner.sendkeys "CMCCAdmin"
  9. ierunner.sendkeys "{TAB}"
  10. wscript.sleep 1000  
  11. ierunner.sendkeys "aDm8H%MdA"
  12. ierunner.sendkeys "{TAB}"
  13. ierunner.sendkeys "{ENTER}"
复制代码
问题一:其它都没问题,但是输入密码时,无法输入%M  应该是把%M当成变量了;
问题二:中文输入状态下,这个程序无法输入用户和密码;




欢迎光临 批处理之家 (http://bbs.bathome.net/) Powered by Discuz! 7.2