VB能做网页监控程序吗?
假设我现在用多种浏览器进行网页连接,我能不能用VB都获取相关的地址,并且记录呢???谢谢!!!
[解决办法]
能。不过你要知道各种浏览器的窗口结构。IE 比较简单,有专用控件。下面是从 IE 获取地址的例子:
Option Explicit
'Reference to Microsoft Internet Control
Dim WinIE As New ShellWindows
Private Sub Command1_Click()
Dim i As Integer
List1.Clear
For i = 0 To WinIE.Count - 1
List1.AddItem WinIE.Item(i).LocationURL
Next i
End Sub
Private Sub Form_Unload(Cancel As Integer)
Set WinIE = Nothing
End Sub