close

Dim WebPage(7)
WebPage(0) = "http://echochio.pixnet.net/blog/post/32570517"
WebPage(1) = "http://echochio.pixnet.net/blog/post/32570549"
WebPage(2) = "http://echochio.pixnet.net/blog/post/32570679"
WebPage(3) = "http://echochio.pixnet.net/blog/post/32570699"
WebPage(4) = "http://echochio.pixnet.net/blog/post/32570709"
WebPage(5) = "http://echochio.pixnet.net/blog/post/32570783"
WebPage(6) = "http://echochio.pixnet.net/blog/post/32570799"
WebPage(7) = "http://echochio.pixnet.net/blog/post/32571685"


waitTime= 50000 'wait period in milliseconds'

'------------------------------------------------------------------------------ ' 

' Start Main loop'
i = 0
do
' Initialize IE'
Set objExplorer = CreateObject("InternetExplorer.Application")
'objExplorer.AddressBar = 1
'objExplorer.Toolbar = 1
'objExplorer.StatusBar = 1
'objExplorer.Width = 600
'objExplorer.Height = 400
'objExplorer.Left = 300
'objExplorer.Top = 150

' load next page
objExplorer.Navigate WebPage(i)

' wait while loading
Do Until (objExplorer.readyState = 4)
wscript.sleep 1000
Loop

' Show finnaly
objExplorer.Visible = 1

' wait period'
wscript.sleep waitTime


' close IE
objExplorer.Quit

' check our loop
i = i + 1
if i = 8 then
i = 0
end if
loop

===============================================================

開IE,關IE

 

arrow
arrow
    文章標籤
    vbs vbscript
    全站熱搜
    創作者介紹
    創作者 echochio 的頭像
    echochio

    echochio

    echochio 發表在 痞客邦 留言(1) 人氣()