作者GaijiL (????)
看板EzHotKey
标题Re: [请问] 要如何批次点选网页?
时间Mon Jan 12 15:18:16 2009
经过多次的试验,
我发现新程式好像没有作用耶...
下面这是之前第一个方法, 不用回圈的最笨方法, 但是却有效!
-------------------------------------------------------------
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)
1F:推 Lumania:URL 不要用 := 改用 = 看看,顺便看看 URL 内容正不正确 01/12 15:26
2F:→ Lumania:可以设outputdebug, %URL% ,用 DebugView看 01/12 15:28
3F:→ GaijiL:但是URL最後面有接一个counter, 我用Msgbox输出好像正确... 01/12 15:30
4F:→ GaijiL:刚刚改成= 好像还是无效.... 01/12 15:33
5F:推 Lumania:URDDownloadToFile, 第一变数用改用 %URL% 01/12 15:34
6F:→ GaijiL:可以了耶@@ 好神奇阿~~感谢楼上指导!!! 01/12 15:37