vb webbrowser 模仿鼠标点击
就是用几条语句,写出链接的文字,就能模仿鼠标点击该链接,求代码注:不用mouse_event 循环Document中的对象
Dim S As Boolean
Dim Word as String '文字
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object, URL As Variant)
For Each a In WebBrowser1.Document.getelementsbytagname(Word)
a.Click
Next
End Sub
页:
[1]