windows使用vbs打开谷歌浏览器登录网页

Windows下使用vbs脚本完成网页登录
新建file.vbs

 

Url="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环境,但是需要一点自动化操作的过程。

 

来源: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

posted @ 2020-02-27 17:30  小强找BUG  阅读(2961)  评论(0编辑  收藏  举报