感谢czjt1234朋友的回复,只能打开第1个网站,第2个打不开,提示出错,见下面代码和图片:- Set objIE = CreateObject("InternetExplorer.Application")
- objIE.Navigate "http://www.2345.com/?751"
- objIE.Visible = True
- While objIE.Busy Or objIE.ReadyState <> 4
- Wscript.Sleep 200
- Wend
-
- objIE2.Navigate "http://www.sohu.com/"
- objIE2.Visible = True
- While objIE2.Busy Or objIE2.ReadyState <> 4
- Wscript.Sleep 200
- Wend
-
- Do
- Wscript.Sleep 1000 * 60 * 1
- objIE.Refresh
- objIE2.Refresh
- Loop
复制代码
|