使用vbs打开谷歌浏览器登录网页
作者:互联网
Windows下使用vbs脚本完成网页登录
新建file.vbsUrl=“xxx”
set wshshell=CreateObject("wscript.shell")
wshshell.Run"""C:\Program Files (x86)\Google\Chrome\Application\chrome.exe""" & Url
wscript.sleep 2000
wscript.sleep 2000
wshshell.sendkeys "{TAB}"
wshshell.sendkeys "username"
wscript.sleep 2000
wshshell.sendkeys "{TAB}"
wshshell.sendkeys "password"
wshshell.sendkeys "{ENTER}"
wscript.quit
如上即可完成网页的登录,适用于无法安装python环境,但是需要一点自动化操作的过程。
转载于:[quote]http://www.grassroadsz.top/archives/%E4%BD%BF%E7%94%A8vbs%E6%89%93%E5%BC%80%E8%B0%B7%E6%AD%8C%E6%B5%8F%E8%A7%88%E5%99%A8%E7%99%BB%E5%BD%95%E7%BD%91%E9%A1%B5[/quote]
标签:BD%,网页,wscript,E7%,vbs,sleep,wshshell,浏览器,sendkeys 来源: https://blog.csdn.net/yerensenling/article/details/104884048