一、设置vbs脚本开机自启动
'═══代═══码═══开═══始═════
set fso=CreateObject("Scripting.FileSystemObject")
set ws=CreateObject("wscript.shell")
set f=fso.getfile(wscript.scriptfullname)
ws.regwrite "HKCU\Software\Microsoft\Windows\CurrentVersion\Run\"&f.name,f.path
'═══代═══码═══结═══束═════
二、打开指定网页并进行登录操作
dim program
program="程序路径"
set Wshell=CreateObject("Wscript.Shell")
set oexec=Wshell.Exec(program)
Wshell.Run "https:www.baidu.com"
wscript.Sleep 2000
Wshell.SendKeys "{TAB}"
Wshell.SendKeys "{TAB}"
Wshell.SendKeys "账号"
wscript.Sleep 1000
Wshell.SendKeys "{TAB}"
Wshell.SendKeys "密码"
Wshell.SendKeys "{TAB}"
Wshell.SendKeys "{TAB}"
Wshell.SendKeys "{TAB}"
Wshell.SendKeys "{ENTER}"
Wscript.quit
'{TAB}:该标签等同于键盘TAB键作用,提前在网页测试登录用户和密码之间tab键的次数'
'wscript.Sleep 程序睡眠时间,ms为单位'