精華區beta EzHotKey 關於我們 聯絡資訊
經過多次的試驗, 我發現新程式好像沒有作用耶... 下面這是之前第一個方法, 不用迴圈的最笨方法, 但是卻有效! ------------------------------------------------------------- URL = ( http://www.wretch.cc/album/album.php?id=Wretchclass&book=1 http://www.wretch.cc/album/album.php?id=Wretchclass&book=2 http://www.wretch.cc/album/album.php?id=Wretchclass&book=3 http://www.wretch.cc/album/album.php?id=Wretchclass&book=4 http://www.wretch.cc/album/album.php?id=Wretchclass&book=5 http://www.wretch.cc/album/album.php?id=Wretchclass&book=6 http://www.wretch.cc/album/album.php?id=Wretchclass&book=7 http://www.wretch.cc/album/album.php?id=Wretchclass&book=8 http://www.wretch.cc/album/album.php?id=Wretchclass&book=9 http://www.wretch.cc/album/album.php?id=Wretchclass&book=10 http://www.wretch.cc/album/album.php?id=Wretchclass&book=11 http://www.wretch.cc/album/album.php?id=Wretchclass&book=12 http://www.wretch.cc/album/album.php?id=Wretchclass&book=13 http://www.wretch.cc/album/album.php?id=Wretchclass&book=14 http://www.wretch.cc/album/album.php?id=Wretchclass&book=15 http://www.wretch.cc/album/album.php?id=Wretchclass&book=16 http://www.wretch.cc/album/album.php?id=Wretchclass&book=17 http://www.wretch.cc/album/album.php?id=Wretchclass&book=18 http://www.wretch.cc/album/album.php?id=Wretchclass&book=19 http://www.wretch.cc/album/album.php?id=Wretchclass&book=20 http://www.wretch.cc/album/album.php?id=Wretchclass&book=21 http://www.wretch.cc/album/album.php?id=Wretchclass&book=22 http://www.wretch.cc/album/album.php?id=Wretchclass&book=23 http://www.wretch.cc/album/album.php?id=Wretchclass&book=24 http://www.wretch.cc/album/album.php?id=Wretchclass&book=25 http://www.wretch.cc/album/album.php?id=Wretchclass&book=26 http://www.wretch.cc/album/album.php?id=Wretchclass&book=27 http://www.wretch.cc/album/album.php?id=Wretchclass&book=28 http://www.wretch.cc/album/album.php?id=Wretchclass&book=29 http://www.wretch.cc/album/album.php?id=Wretchclass&book=30 http://www.wretch.cc/album/album.php?id=Wretchclass&book=31 http://www.wretch.cc/album/album.php?id=Wretchclass&book=32 http://www.wretch.cc/album/album.php?id=Wretchclass&book=33 http://www.wretch.cc/album/album.php?id=Wretchclass&book=34 http://www.wretch.cc/album/album.php?id=Wretchclass&book=35 http://www.wretch.cc/album/album.php?id=Wretchclass&book=36 http://www.wretch.cc/album/album.php?id=Wretchclass&book=37 http://www.wretch.cc/album/album.php?id=Wretchclass&book=38 http://www.wretch.cc/album/album.php?id=Wretchclass&book=39 http://www.wretch.cc/album/album.php?id=Wretchclass&book=40 http://www.wretch.cc/album/album.php?id=Wretchclass&book=41 http://www.wretch.cc/album/album.php?id=Wretchclass&book=42 ) Loop, Parse, URL, `n URLDownloadToFile, %A_LoopField%, %A_Temp%\_AddAccessCount.tmp FileDelete, %A_Temp%\_AddAccessCount.tmp ; 刪除暫存檔 MsgBox, 執行完畢 ------------------------------------------------------------------- 但是這方法.........有點冏 不過送出以後, 我看相簿的人氣確實都有增加, 但是用下面的方法就完全無效.....(註:我測試的時候有換IP讓他可以重計) -------------------------------------------------------- Album_num_min := 1 ; 相簿編號最小值 Album_num_max := 43 ; 相簿編號最大值 Counter := Album_num_min ; 計數器 Loop { IF(Counter <= Album_num_max) ; 計數器小於等於相簿編號最大值才執行 { URL := "http://www.wretch.cc/album/album.php?id=Wretchclass&book="Counter ; 目標網址和相簿編號 ; MsgBox, %URL% ; 此行debug專用 Counter++ ; 計數器加一 URLDownloadToFile, %A_LoopField%, %A_Temp%\_AddAccessCount.tmp } else break ; 計數器大於相簿編號最大值則停止 } FileDelete, %A_Temp%\_AddAccessCount.tmp ; 刪除暫存檔 MsgBox, 執行完畢 -------------------------------------------------------------- 很怪, 不跑就是不跑...麻煩大家再多給點指導... -- ※ 發信站: 批踢踢實業坊(ptt.cc) ◆ From: 210.69.150.30 ※ 編輯: GaijiL 來自: 210.69.150.30 (01/12 15:20)
Lumania:URL 不要用 := 改用 = 看看,順便看看 URL 內容正不正確 01/12 15:26
Lumania:可以設outputdebug, %URL% ,用 DebugView看 01/12 15:28
GaijiL:但是URL最後面有接一個counter, 我用Msgbox輸出好像正確... 01/12 15:30
GaijiL:剛剛改成= 好像還是無效.... 01/12 15:33
Lumania:URDDownloadToFile, 第一變數用改用 %URL% 01/12 15:34
GaijiL:可以了耶@@ 好神奇阿~~感謝樓上指導!!! 01/12 15:37