'名称:贴吧自动签到工具 v2
'作者:次碳酸钴
'时间:2012/8/6
'用户COOKIE**,可以多个帐号签到
c=Array(_
"第一个帐号的COOKIE",_
"第二个帐号的COOKIE"_
)
'签到贴吧**
s=Array("当歌","推你")
'↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑设置好上面两个参数
For Each i In c
k=GetTbs(i)
If k<>"" Then
For Each j In s
Sign i,j,k
WSH.Sleep 1000
Next
End If
Next
MsgBox "完成"
Function Sign(cookie,tbn,tbs)
With CreateObject("MSXML2.ServerXMLHTTP")
.Open "POST","http://tieba.baidu.com/sign/add",False
.SetRequestHeader "Content-Type","Application/x-www-form-urlencoded"
.SetRequestHeader "Cookie",cookie
.Send "ie=utf-8&kw="&URLEncode(tbn)&"&tbs="&tbs
Sign=.ResponseText
End With
End Function
Function GetTbs(cookie)
With CreateObject("MSXML2.ServerXMLHTTP")
.Open "GET","http://tieba.baidu.com/dc/common/tbs",False
.SetRequestHeader "Cookie",cookie:.Send
Set m=RegExp("\w{26}").Execute(.ResponseText)
End With
If m.Count<>0 Then GetTbs=m(0)
End Function
Function RegExp(s)
Dim re
Set re=New RegExp
re.Pattern=s
re.Global=True
Set RegExp=re
End Function
Function URLEncode(u)
With CreateObject("ScriptControl")
.Language="JavaScript"
URLEncode=.Run("encodeURIComponent",u)
End With
End Function
'作者:次碳酸钴
'时间:2012/8/6
'用户COOKIE**,可以多个帐号签到
c=Array(_
"第一个帐号的COOKIE",_
"第二个帐号的COOKIE"_
)
'签到贴吧**
s=Array("当歌","推你")
'↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑↑设置好上面两个参数
For Each i In c
k=GetTbs(i)
If k<>"" Then
For Each j In s
Sign i,j,k
WSH.Sleep 1000
Next
End If
Next
MsgBox "完成"
Function Sign(cookie,tbn,tbs)
With CreateObject("MSXML2.ServerXMLHTTP")
.Open "POST","http://tieba.baidu.com/sign/add",False
.SetRequestHeader "Content-Type","Application/x-www-form-urlencoded"
.SetRequestHeader "Cookie",cookie
.Send "ie=utf-8&kw="&URLEncode(tbn)&"&tbs="&tbs
Sign=.ResponseText
End With
End Function
Function GetTbs(cookie)
With CreateObject("MSXML2.ServerXMLHTTP")
.Open "GET","http://tieba.baidu.com/dc/common/tbs",False
.SetRequestHeader "Cookie",cookie:.Send
Set m=RegExp("\w{26}").Execute(.ResponseText)
End With
If m.Count<>0 Then GetTbs=m(0)
End Function
Function RegExp(s)
Dim re
Set re=New RegExp
re.Pattern=s
re.Global=True
Set RegExp=re
End Function
Function URLEncode(u)
With CreateObject("ScriptControl")
.Language="JavaScript"
URLEncode=.Run("encodeURIComponent",u)
End With
End Function