gpt4 book ai didi

VBScript启动网站登录

转载 作者:行者123 更新时间:2023-12-02 22:16:07 24 4
gpt4 key购买 nike

我在网上找到了这个脚本,我编辑了其中的大部分内容。

可以在其下方输入用户名和密码,但无法单击登录。

请帮我解决一下这里是登录论坛。

http://desistream.tv/en/index.shtml

这是脚本,目前它在 IE 中,但我需要将其更改为在 Google Chrome 中打开。

WScript.Quit Main

Function Main
Set IE = WScript.CreateObject("InternetExplorer.Application", "IE_")
IE.Visible = True
IE.Navigate "http://desistream.tv/en/index.shtml"
Wait IE
With IE.Document
.getElementByID("login_username").value = "myusername"
.getElementByID("login_password").value = "mypassword"
.getElementByID("form").submit
End With
End Function

Sub Wait(IE)
Do
WScript.Sleep 500
Loop While IE.ReadyState < 4 And IE.Busy
Do
WScript.Sleep 500
Loop While IE.ReadyState < 4 And IE.Busy
End Sub

Sub IE_OnQuit
On Error Resume Next
WScript.StdErr.WriteLine "IE closed before script finished."
WScript.Quit
End Sub

最佳答案

这里是...

Call Main

Function Main
Set IE = WScript.CreateObject("InternetExplorer.Application", "IE_")
IE.Visible = True
IE.Navigate "http://desistream.tv/en/index.shtml"
Wait IE
With IE.Document
.getElementByID("username").value = "myusername"
.getElementByID("pass").value = "mypassword"
.getElementsByName("frmLogin")(0).Submit
End With
End Function

Sub Wait(IE)
Do
WScript.Sleep 500
Loop While IE.ReadyState < 4 And IE.Busy
End Sub

关于VBScript启动网站登录,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/14221907/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com