Private Declare Function ShellExecute Lib"shell32.dll"Alias "ShellExecuteA" (ByVal hwnd AsLong,ByVal lpOperation As String,ByVal lpFile As String,ByVal lpParameters As String,ByVallpDirectory As String,ByVal nShowCmd As Long)As Long'声明
Sub ClearDups(lst As Control, comptype As Boolean)
Dim i&, j&, tmp$(),c ID&, ls tCount&, s Comptype&, tmpLine$ls t.Vis ib le=F als els t C o unt=ls t.Lis t C o unt - 1
If lstCount<0 Then Exit Sub
ReDim tmp(ls tCount)
If c omptype Then s Comptype=0 Els e s Comptype=1
For j=lstCount To 0 Step-1tmp Lin e=ls t.Lis t(j)
For i=0 TocID- 1
If StrComp(tmp(i), tmpLine, s Comptype)=0 Thenlst.RemoveItem j
Exit For
End If
Next
If i>cID- 1 Thentmp(cI D)=tmp LinecID=cID+1
End If
Nextls t.Vis ib le=T rue
End Sub
Function ChkList()As Boo lean
Dim m As Integer
F or m=0 To Lis t 1.Lis tCount - 1
If List 1.List(m)=zihao Then
ChkL is t=F als e
Els e
ChkL is t=T rue
End If
Next
End Function
Public Function FindStrMulti$(Strall$,FirstStr$,EndStr$,SplitStr$)
Dim i&, j&j=1
Doi=InStr(j,Strall,FirstStr)
If i=0 Then
Exit Do
End Ifi=i+Len(F ir s tS tr)j=In S tr(i,S trall,EndS tr)
If j>0 Then
F indStrMulti=IIf(Len(F indStrMulti)>0,FindStrMulti&SplitStr, "")&Mid(Strall, i, j -i)
Els e
Exit Do
End If
Loop
End Function
Private Sub Command1_Click()
Web Brow s er 1.Navigate Text 1.Text
Call Command2_Click
Lab e l 1.Vis ib le=True
End Sub
Private Sub Command2_Click()
On Error Resume Next
For i=0 To WebBrow s er 1.Document.links.Length- 1
Dim zihao As String
If InStr(WebBrowser1.Document.links.Item(i),"http://www.52pojie.c n/forum.php?mod=redirec t&goto=findpost&ptid=")Thenzihao = WebBrow s er 1.Doc ument.links.Item(i).innerText & "--" &Web Brow s er 1.Document.getelementbyid("postmes s age_" &FindStrMult i(Web Brow s er 1.Document.links.Item(i)&"abc", "&pid=", "abc", "")).innerTextIf List 1.ListCount=0 Then List 1.AddItem zihao
If ChkList=True Then List 1.AddItem zihao
End If
Next i
End Sub
Private Sub Command3_Click()
Dim sT!sT=Timer
ClearDups List 1,True
Lab el 1.Capt ion="本帖回复"&Lis t 1.Lis tCount&"次/"&I nt(Lis t 1.Lis tCount / 10)+1&"页"
End Sub
Private Sub Command4_Click()
On Error Resume Next
Dim outdatatxt As String
Open"d:\回复记录.txt"F or Output As#1
F or i=0 To Lis t 1.Lis tCount - 1
Pr int#1,Lis t 1.Lis t(i)
Next i
Close#1
Ms gBox"已保存在“d:\回复记录.txt”中", , "提示"
End Sub
Private Sub Command5_Click()
On Error Resume Next
F or i=0 To Lis t 1.Lis tCount - 1
Dim m As Stringm=F indS trMulti(L is t 1.Lis t(i)&"ENT ER", "--", "ENTE R", "")
Dim Sum&
S um=0
For c=1 To Len(m)
Char=Mid(m,c, 1)
If (AscW(Char) > -40870 And AscW(Char) < -19967) Or (AscW(Char) < 40870 AndAs c W(Char)>19967)Then
S um=S um+1
End If
Next c
If Sum<=1 Then
Lis t2.AddItem Lis t 1.Lis t(i)
End If
Next i
If List2.ListCount=0 Then
MsgBox"貌似本帖无人灌水、 ", , "好现象"
End If
End Sub
Private Sub Form_Load()
Web Brow s er 1.Navigate"http://www.52pojie.cn/"
End Sub
Private Sub Label3_Click()
On Error Resume Next
ShellEx ecute 0, "open", "http://b log.sina.c om.cn/s/blog_92b6d74d01012s 3r.html", vbNullString,vbNul lS tring, 3
End Sub
Private Sub Text1_Change()
If List 1.ListCount<>0 Then
For a=List1.ListCount - 1 To 0 Step-1
Lis t 1.RemoveItem(a)
Next a
End If
I f Lis t2.Lis tCount<>0 Then
For a=List2.ListCount - 1 To 0 Step-1
Lis t2.RemoveI tem(a)
Next a
End If
Label1.Caption=""
Web Brow s er 1.Navigate"about:b lank"
End Sub
Private Sub Text1_GotFocus()
Text 1.SelStart=0
Text 1.S elLength=Len(Text 1)
End Sub
Private Sub WebBrowser1_DocumentComplete(ByVal pDisp As Object,URL As Variant)For i=0 To WebBrow s er 1.Document.links.Length- 1
If WebBrows er 1.Document.links.Item(i).innerText="下一页"Then
WebBrowser 1.Navigate WebBrowser 1.Document.links.Item(i)
End If
Next i
Call Command2_Click
End Sub
萤光云怎么样?萤光云是一家国人云厂商,总部位于福建福州。其成立于2002年,主打高防云服务器产品,主要提供福州、北京、上海BGP和香港CN2节点。萤光云的高防云服务器自带50G防御,适合高防建站、游戏高防等业务。目前萤光云推出北京云服务器优惠活动,机房为北京BGP机房,购买北京云服务器可享受6.5折优惠+51元代金券(折扣和代金券可叠加使用)。活动期间还支持申请免费试用,需提交工单开通免费试用体验...
ucloud6.18推出全球大促活动,针对新老用户(个人/企业)提供云服务器促销产品,其中最低配快杰云服务器月付5元起,中国香港快杰型云服务器月付13元起,最高可购3年,有AMD/Intel系列。当然这都是针对新用户的优惠。注意,UCloud全球有31个数据中心,29条专线,覆盖五大洲,基本上你想要的都能找到。注意:以上ucloud 618优惠都是新用户专享,老用户就随便看看!点击进入:uclou...
昔日数据怎么样?昔日数据是一个来自国内服务器销售商,成立于2020年底,主要销售国内海外云服务器,目前有国内湖北十堰云服务器和香港hkbn云服务器 采用KVM虚拟化技术构架,湖北十堰机房10M带宽月付19元起;香港HKBN,月付12元起; 此次夏日活动全部首月5折促销,有需要的可以关注一下。点击进入:昔日数据官方网站地址昔日数据优惠码:优惠码: XR2021 全场通用(活动持续半个月 2021/7...