vb编程问题,请指教
来源:百度知道 编辑:UC知道 时间:2024/05/06 12:25:05
,登陆后自动弹出http://iask.com(就是爱问网)如何将它屏蔽呀?
相关连接请看http://zhidao.baidu.com/question/13756196.html
Private Sub Command1_Click()
WB1.Navigate "www.sina.com.cn"
End Sub
Private Sub Command2_Click()
End
End Sub
Private Sub WB1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
Dim vDoc, vTag
Dim I As Integer
Set vDoc = WB1.Document
'List1.Clear
For I = 0 To vDoc.All.length - 1
If I = 81 Or I = 82 Or I = 89 Then
If UCase(vDoc.All(I).tagName) = "INPUT" Then
Set vTag = vDoc.All(I)
If vTag.Type = "text" Or vTag.Type = "password" Then
List1.AddItem vTag.Name
Select Case vTag.Name
Case "u" '如果是用户名的那个框
vTag.Value = "wangjigui6139" '这个是用户名