回复 18# CrLf
登录第二个账号时就出错,是怎么回事- 'On Error Resume Next
- Dim ie,nam,pass
- Set ie=WScript.CreateObject("InternetExplorer.Application")
- j = 0
- nam = "15672465439"
- pass = "123456"
- Call aoie(nam,pass)
-
- nam = "15672465439"
- pass = "123456"
- Call aoie(nam,pass)
-
- nam = "15672465439"
- pass = "123456"
- Call aoie(nam,pass)
-
- WScript.Echo(j)
-
- Sub aoie(nam,pass)
-
- ie.navigate "https://www.cgtz.com/login.html"
-
- While ie.busy Or ie.readystate <> 4
- Wend
-
- ie.Document.getElementById("LoginForm_username").value=nam
- ie.Document.getElementById("LoginForm_password").value=pass
- ie.Document.getElementById("submit").click
-
- While ie.busy Or ie.readystate <> 4
- Wend
-
- ie.navigate "https://www.cgtz.com/palace/index.html"
-
- While ie.busy Or ie.readystate <> 4
- Wend
-
- ie.Document.getElementById("signNum").parentNode.getElementsByTagName("a")(1).click
- j = j + 1
- End Sub
复制代码
|