为什么不能传送回车键?
Private Sub Form_Load()WebBrowser1.Navigate "http://www.
End Sub
Private Sub WebBrowser1_DownloadComplete()
Dim vDoc, vTag
Dim i As Integer
Set vDoc = WebBrowser1.Document
For i = 0 To vDoc.All.length - 1 '检测所有标签
If UCase(vDoc.All(i).tagName) = "INPUT" Then '找到input标签
Set vTag = vDoc.All(i)
If vTag.Type = "text" Then '检测类型
Select Case vTag.Name
Case "user" '填写用户名的文本框的值
vTag.Value = "aaa"
End Select
End If
If vTag.Type = "password" Then '检测密码框类型
Select Case vTag.Name
Case "pass" '密码框的值
vTag.Value = "12"
End Select
End If
End If
Next i
[bo]SendKeys "{enter}"[/bo]
End Sub