Private Sub Command3_Click()
Dim vDoc, vTag
Dim i As Integer
Set vDoc = Web.document
For i = 0 To vDoc.All.length - 1
If UCase(vDoc.All(i).tagName) = "INPUT" Then
Set vTag = vDoc.All(i)
If vTag.Type = "text" Or vTag.Type = "password" Then
Select Case LCase(vTag.Name)
Case ""
'vTag.Value = Text1.Text '帳戶
If i = 40 Then vTag.Value = Text1.Text '帳戶
If i = 207 Then vTag.Value = Text2.Text '帳戶
If i = 214 Then vTag.Value = Text2.Text '帳戶
Case "password"
vTag.Value = "9999999999999999999" '密碼
End Select
ElseIf vTag.Type = "submit" Then
vTag.Click
End If
End If
Next i
End Sub
Private Sub Form_Load()
Web.navigate " http://reg.qq.com/"
End Sub
'我也是新學的給你做個看看吧,
- 追問:
-
不是說了不用Webbrowser!!! 你還給用Webbrowser控件的答案!!
- 回答:
- 那就挺馬煩的了,呵呵
- 追問:
-
不過還是謝謝你哦 那你能做個嗎?