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環境,但是需要一點自動化操作的過程。