black_mady black_mady
关注数: 59 粉丝数: 68 发帖数: 1,322 关注贴吧数: 88
用陈老汉的高亮工具帖个代码试试 'http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fwww.oschina.net%2Fcode%2Fexplore%2Fgit-1.7.3&urlrefer=9a28cb7c3bf7ede2fadbd41f536b00ee 'Author : mady 'on error resume next dim fso,root_path,root,url, document,alabels,alabel,ah,ac,thunder1 set fso= createobject( "scripting.filesystemobject") set thunder1=new Thunder downroot= "http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fwww.oschina.net%2Fcode%2Fdownload_src%3Ffile%3D&urlrefer=25c9ed86a74a4fc5ce3ffa031bdb3d38" lookroot= "http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fwww.oschina.net%2Fcode%2Fexplore%2F&urlrefer=65cc51b7b325807580408e32ad414e99" root_path=wscript.scriptfullname & "__mady__" if not fso.folderexists(root_path) then set root=fso.CreateFolder(root_path) else msgbox "文件夹已存在,请先删除!" end if url= inputbox( "请输入根目录!") call downloadFiles(root,url) call thunder1.download() function downloadFiles(folder,url) dim filelist set document = CreateDocument(url) filetree= document.getElementById( "FileTree").innerHTML document.body.innerHTML=filetree set alabels= document.getElementsByTagName( "a") for each alabel in alabels ah= replace(alabel.href, "about:", "") ac= alabel.innerHTML if ac<> "上一级" then filelist=filelist & "|" & ac & ":" & ah end if next call createListFile(folder,filelist) call createAllFolder(folder,filelist) afl= split(filelist, "|") for i=1 to ubound(afl) aafl= split(afl(i), ":") if left( trim(aafl(0)),1)<> "[" or right( trim(aafl(0)),1)<> "]" then call thunder1.addTask(downroot & replace(url & "%2F"& aafl(1),lookroot, ""),folder) end if next for each subFolder in folder.subFolders call downloadFiles(subFolder,url & replace(subFolder,folder, "")) next end function function createListFile(folder,filelist) set tfile=fso.createTextFile(folder & "\listfile__mady__.txt",true) afl= replace(filelist, "|",vbcrlf) tfile.write(afl) tfile.close() end function function createAllFolder(folder,filelist) 'on error resume next afl= split(filelist, "|") for i=1 to ubound(afl) aafl= split(afl(i), ":") if left( trim(aafl(0)),1)= "[" and right( trim(aafl(0)),1)= "]" then temp= trim(aafl(0)) temp= left(temp, len(temp)-1) temp= right(temp, len(temp)-1) createAllFolder=fso.createfolder(folder & "\" &temp) end if next end function Function CreateDocument(url) Dim document,xmlhttp,txt Set document = CreateObject( "HTMLFile") Set xmlhttp = CreateObject( "Microsoft.XMLHTTP") xmlhttp.Open "get",url,False xmlhttp.send txt = xmlhttp.responseText document.write txt Set CreateDocument = document End Function 'class of thunder download Class Thunder Public ThunderAgent Private Sub Class_Initialize() on error resume next Set ThunderAgent = CreateObject( "ThunderAgent.Agent.1") if err then err.clear msgbox "莫非你的电脑木装迅雷?" end if End Sub Private Sub Class_Terminate() on error resume next Set ThunderAgent = nothing End Sub Public Function addTask(url,path) Call ThunderAgent.AddTask(url,,path, "", "http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Fbaidu.com&urlrefer=0fe59b0a4ae3f44bc6c0781df3ceaee9",1,0,5) End Function Public Function download() Call ThunderAgent.CommitTasks2(1) Set ThunderAgent = Nothing End Function End Class
无私的奉献出我的用飞信免费发短信接口。。 'By mady(我是企鹅) Dim LoginUrl,homeUrl,url,msg,logstate phoneNum=""     '手机号 pass=""   '密码 loginstatus="1"    '在线 msg="已登录!"      '信息内容 homeUrl="http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Ff.10086.cn%2Fim%2Findex%2Findexcenter.action&urlrefer=447edf3be851303b52f4029ffbca98d5" LoginUrl="http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Ff.10086.cn%2Fim%2Flogin%2Finputpasssubmit1.action%3Floginstatus%3D&urlrefer=a7421ebb61381910a3e4012ec9681d09"& loginstatus &"&pass="& pass &"&m="& honeNum url="http://tieba.baidu.com/mo/q/checkurl?url=http%3A%2F%2Ff.10086.cn%2Fim%2Fuser%2FsendMsgToMyselfs.action%3Fmsg%3D&urlrefer=b6ae6ee6ebcbc39b8d458aa456656cce"& msg Dim xmlhttp,xmlresult Set xmlhttp=createobject("microsoft.xmlhttp") if not sendMMStoMyself() then      if login() then          if not sendMMStoMyself() then              msgbox "发送失败"          else              msgbox "发送成功"          end if      else          msgbox "登录失败"      end if else      msgbox "发送成功" end if function getData(f,url,t)      If f="" Then f="post"      xmlhttp.open f,url,t      xmlhttp.setRequestHeader "Content-Type","application/x-www-form-urlencoded;charset=gb2312"      xmlhttp.setRequestHeader "cache-control","no-cache"      xmlhttp.send()      If t Then          xmlhttp.onreadystatechange=GetRef("xmltb")      Else          getData=xmlhttp.responseText      End If end Function function xmltb()      If xmlhttp.readyState=4 Or xmlhttp.readyState="complete" then          If xmlhttp.status=200 Then              xmlresult=xmlhttp.responseText          Else              xmlresult="error contenting to server"          End If      End If End Function function sendMMStoMyself()      sendMMStoMyself=false      xmlresult=getData("",url,false)      if instr(xmlresult,"发送成功")>0 Then          sendMMStoMyself=true      end if end function function login()      login=false      logstate=false      xmlresult=getData("",loginUrl,false)      if instr(xmlresult,"您正在登录")>0 Then          login=true          logstate=true      end if end function function getfriend()      dim f,p,tempval,temparr      if not logstate then login()      xmlresult=getData("",homeUrl,false)     end function '希望大家能够完善其功能
首页 1 2 下一页