1、脚本内容
Url="https://blog.youkuaiyun.com/adminmanager1/article/details/105976153"
set wshshell=CreateObject("wscript.shell")
wshshell.Run"""C:\Users\Administrator\AppData\Local\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
C:\Users\Administrator\AppData\Local\Google\Chrome\Application\chrome.exe 电脑上谷歌浏览器运行地址
Url:刷新页面的地址
2、电脑设置定时任务
参考:https://jingyan.baidu.com/album/1974b2893acf5ef4b0f7744d.html?picindex=3
本文介绍了一种使用VBScript自动执行浏览器操作的方法,包括打开Chrome浏览器、访问特定URL并自动输入用户名和密码进行登录。此外,还提供了如何在Windows中设置定时任务以定期执行该脚本的教程。
4464

被折叠的 条评论
为什么被折叠?



