[心缘地方]同学录
首页 | 功能说明 | 站长通知 | 最近更新 | 编码查看转换 | 代码下载 | 常见问题及讨论 | 《深入解析ASP核心技术》 | 王小鸭自动发工资条VBA版
登录系统:用户名: 密码: 如果要讨论问题,请先注册。

[备忘]自制“快速上传图片并发帖”的vbscript程序

上一篇:[转帖]批处理中FOR语句的用法(转自微软)
下一篇:[备忘]画界面原型的一个开源工具,很好用~~

添加日期:2012/4/1 9:35:32 快速返回   返回列表 阅读4233次
(1)给.jpg和.gif文件,右键添加“快速贴图”的命令。

.reg文件如下,双击导入即可。


Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\jpegfile\shell\postImageToBBS]
@="----------快速贴图-----------"
[HKEY_CLASSES_ROOT\jpegfile\shell\postImageToBBS\command]
@="cmd.exe /c c:\\postImage.vbs %1"

[HKEY_CLASSES_ROOT\giffile\shell\postImageToBBS]
@="----------快速贴图-----------"
[HKEY_CLASSES_ROOT\giffile\shell\postImageToBBS\command]
@="cmd.exe /c c:\\postImage.vbs %1"



(2)c:\\postImage.vbs的内容如下,供参考:


'----------------接收参数-----------------------
Set oArgs = WScript.Arguments
filepath = oArgs(0)

title = InputBox("输入标题","快速贴图","图")
if trim(title) = "" then
    title = "图" & NOW()
end if

Set oArgs = Nothing
'------------------------------------------------------------
'XML Upload Class 
Class XMLUpload 
    Private xmlHttp 
    Private objTemp 
    Private adTypeBinary, adTypeText 
    Private strCharset, strBoundary 

    Private Sub Class_Initialize() 
        adTypeBinary = 1 
        adTypeText = 2 
        Set xmlHttp = CreateObject("Msxml2.XMLHTTP") 
        Set objTemp = CreateObject("ADODB.Stream") 
        objTemp.Type = adTypeBinary 
        objTemp.Open 
        strCharset = "utf-8" 
        strBoundary = GetBoundary() 
    End Sub 

    Private Sub Class_Terminate() 
        objTemp.Close 
        Set objTemp = Nothing 
        Set xmlHttp = Nothing 
    End Sub 

    '指定字符集的字符串转字节数组 
    Public Function StringToBytes(ByVal strData, ByVal strCharset) 
        Dim objFile 
        Set objFile = CreateObject("ADODB.Stream") 
        objFile.Type = adTypeText 
        objFile.Charset = strCharset 
        objFile.Open 
        objFile.WriteText strData 
        objFile.Position = 0 
        objFile.Type = adTypeBinary 
        If UCase(strCharset) = "UNICODE" Then 
        objFile.Position = 2 'delete UNICODE BOM 
        ElseIf UCase(strCharset) = "UTF-8" Then 
        objFile.Position = 3 'delete UTF-8 BOM 
        End If 
        StringToBytes = objFile.Read(-1) 
        objFile.Close 
        Set objFile = Nothing 
    End Function 

    '获取文件内容的字节数组 
    Private Function GetFileBinary(ByVal strPath) 
        Dim objFile 
        Set objFile = CreateObject("ADODB.Stream") 
        objFile.Type = adTypeBinary 
        objFile.Open 
        objFile.LoadFromFile strPath 
        GetFileBinary = objFile.Read(-1) 
        objFile.Close 
        Set objFile = Nothing 
    End Function 

    '获取自定义的表单数据分界线 
    Private Function GetBoundary() 
        Dim ret(12) 
        Dim table 
        Dim i 
        table = "abcdefghijklmnopqrstuvwxzy0123456789" 
        Randomize 
        For i = 0 To UBound(ret) 
        ret(i) = Mid(table, Int(Rnd() * Len(table) + 1), 1) 
        Next 
        GetBoundary = "---------------------------" & Join(ret, Empty) 
    End Function 

    '设置上传使用的字符集 
    Public Property Let Charset(ByVal strValue) 
        strCharset = strValue 
    End Property 

    '添加文本域的名称和值 
    Public Sub AddForm(ByVal strName, ByVal strValue) 
        Dim tmp 
        tmp = "\r\n--$1\r\nContent-Disposition: form-data; name=""$2""\r\n\r\n$3" 
        tmp = Replace(tmp, "\r\n", vbCrLf) 
        tmp = Replace(tmp, "$1", strBoundary) 
        tmp = Replace(tmp, "$2", strName) 
        tmp = Replace(tmp, "$3", strValue) 
        objTemp.Write StringToBytes(tmp, strCharset) 
    End Sub 

    '设置文件域的名称/文件名称/文件MIME类型/文件路径或文件字节数组 
    Public Sub AddFile(ByVal strName, ByVal strFileName, ByVal strFileType, ByVal strFilePath) 
        Dim tmp 
        tmp = "\r\n--$1\r\nContent-Disposition: form-data; name=""$2""; filename=""$3""\r\nContent-Type: $4\r\n\r\n" 
        tmp = Replace(tmp, "\r\n", vbCrLf) 
        tmp = Replace(tmp, "$1", strBoundary) 
        tmp = Replace(tmp, "$2", strName) 
        tmp = Replace(tmp, "$3", strFileName) 
        tmp = Replace(tmp, "$4", strFileType) 
        objTemp.Write StringToBytes(tmp, strCharset) 
        objTemp.Write GetFileBinary(strFilePath) 
    End Sub 

    '设置multipart/form-data结束标记 
    Private Sub AddEnd() 
        Dim tmp 
        tmp = "\r\n--$1--\r\n" 
        tmp = Replace(tmp, "\r\n", vbCrLf) 
        tmp = Replace(tmp, "$1", strBoundary) 
        objTemp.Write StringToBytes(tmp, strCharset) 
        objTemp.Position = 2 
    End Sub 

    '上传到指定的URL,并返回服务器应答 
    Public Function Upload(ByVal strURL) 
        Call AddEnd 
        xmlHttp.Open "POST", strURL, False 
        xmlHttp.setRequestHeader "Content-Type", "multipart/form-data; boundary=" & strBoundary 
        'xmlHttp.setRequestHeader "Content-Length", objTemp.size 
        xmlHttp.Send objTemp 
        Upload = xmlHttp.responseText 
    End Function 
End Class 
'---------------------upload image-------------------------------
Dim UploadData 
Set UploadData = New XMLUpload 
UploadData.Charset = "utf-8" 
UploadData.AddForm "__VIEWSTATE", "/wEPDwULLTE0MDI0NzI3NjQPZBYCAgMPFgIeB2VuY3R5cGUFE211bHRpcGFydC9mb3JtLWRhdGEWAgIBD2QWAgIBDw8WAh4EVGV4dAUG5LiK5LygZGRkLQz15QgYWkxHD2FAxisnscJtYtE=" '文本域的名称和内容 
UploadData.AddForm "uploadfile1:startup","上传"
UploadData.AddFile "uploadfile1:filefield1", "test.jpg", "image/jpg", filepath

xxx = UploadData.Upload("http://xxxxxxx.com/bbs/web/uploadfile.aspx") 
set UploadData = nothing

yyy = right(xxx,200)
aa = instr(yyy,"<script>loadfileInner('")
if aa<1 then
    msgbox "上传图片失败." & yyy
    wscript.quit
end if
bb = instr(aa+30,yyy,"','")
httpFilePath = mid(yyy,aa+23,bb-aa-23)
'WScript.Echo  httpFilePath
'--------------------------发帖------------------------------------------


Function urlencode(str)
    Dim i,c,s,length
    length = Len(str)
    For i = 1 To length
        s = Mid(str,i,1)
        c = "&H" & Hex(AscW(Mid(str,i,1)))
        If ( c >= AscW("A") And c <= AscW("Z") ) Or _
            ( c >= AscW("a") And c <= AscW("z") ) Or _
            ( c >= AscW("0") And c <= AscW("9") ) Or _
            ( c = AscW("-") Or c = AscW("_") Or c = AscW(".") ) Then
            urlencode = urlencode & s
        ElseIf c = AscW(" ") Then
            urlencode = urlencode & "+"
        Else
            If c >= &H0001 And c <= &H007F Then
                urlencode = urlencode & s
            ElseIf c > &H07FF Then
                urlencode = urlencode & "%" & Hex(&HE0 Or (c\(2^12) And &H0F))
                urlencode = urlencode & "%" & Hex(&H80 Or (c\(2^6) And &H3F))
                urlencode = urlencode & "%" & Hex(&H80 Or (c\(2^0) And &H3F))
            Else
                urlencode = urlencode & "%" & Hex(&HC0 Or (c\(2^6) And &H1F))
                urlencode = urlencode & "%" & Hex(&H80 Or (c\(2^0) And &H3F))
            End If
        End If
    Next
End Function
'--------------------------发帖------------------------------------------
Set xmlHttp2 = CreateObject("Msxml2.XMLHTTP") 
strURL = "http://xxxxxxxx.com/bbs/web/newbbs/NewForumPost.aspx?MinorTopicTypeID=19"
xmlHttp2.Open "POST", strURL, False 
xmlHttp2.setRequestHeader "Content-Type", "application/x-www-form-urlencoded"

xmlHttp2.setRequestHeader "Referer", "http://xxxxxxx.com/bbs/web/newbbs/NewForumPost.aspx?MinorTopicTypeID=19"
'实际上,设置Referer不好使,安全上的考虑,xmlhttp组件屏蔽了这个功能.
'还好,服务端没有验证referer.

postTitle = title '标题
postContent = "<img src='" & httpFilePath & "'>" '内容
sendStr = "__EVENTTARGET=&__EVENTARGUMENT=&__VIEWSTATE=%2FwEPDwUJMTA0Nzc4ODAyD2QWAmYPZBYcAgEPZBYGAgIPDxYCHghJbWFnZVVybAUXLi4vaW1hZ2VzL2JudF9sb2dpbi5qcGdkZAIDDxYCHglpbm5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YxAzc2MQMzMDEDMzAzAzY0MRQrAw1nZ2dnZ2dnZ2dnZ2dnFgECA2QCDQ8WAh8EaBYEZg9kFgJmDw8WAh8CBQzkuLvpopjliIbnsbtkZAIBD2QWAgIBDxAPFgIfBWdkEBUIDOi0tOWbvuS4k%2BWMugzlvbHop4bkuqTmtYEM6am06KGM5aSp5LiLDOmfs%2BS5kOauv%2BWgggzlvIDlv4PkuZDlm60P6Iqx6I2J5LiO5a6g54mpDOaIkeeIseinhumikQlaVEXova7mu5EVCAIxOQI4MgIyMAIyMQIyMgQxMTAyAzEwMgQxMDIxFCsDCGdnZ2dnZ2dnFgFmZAIPDw8WAh8CBQbpgInpoblkZAIRDxAPFgIfAgUJ5LiN5YWs5byAZGRkZAITDxAPFgIfAgUS5Zue5biW6YKu5Lu26YCa55%2BlZGRkZAIVDw8WAh8CBQbmoIfpophkZAIbDxAPFgIfAgUG5YWs5ZGKZGRkZAIfDxYCHgV2YWx1ZQUG5L%2Bd5a2YZAIhDxYCHwYFBuaaguWtmGQCIw8WAh8GBQzlj5HooajkuLvpophkGAEFHl9fQ29udHJvbHNSZXF1aXJlUG9zdEJhY2tLZXlfXxYBBQ51Y1RvcDpidG5Mb2dpbgAJFY0ru3ZIqTDYB5oBL7A%2FY%2FVV&ucTop%3AhiddenIsDisplayS=&ucTop%3AhiddenIsDisplayW=1&txtTitle="& urlencode(postTitle) & "&postBodyEditor=" & urlencode(postContent) & "&btnSubmit=%E5%8F%91%E8%A1%A8%E4%B8%BB%E9%A2%98"
xmlHttp2.setRequestHeader "Content-Length", lenb(sendStr)
xmlHttp2.Send sendStr 
yyy = xmlHttp2.responseText

Set xmlHttp2 = nothing

if instr(yyy,"refresh")>1 then
    msgbox "ok"
else
    msgbox "发帖失败."
end if

 

评论 COMMENTS
没有评论 No Comments.

添加评论 Add new comment.
昵称 Name:
评论内容 Comment:
验证码(不区分大小写)
Validation Code:
(not case sensitive)
看不清?点这里换一张!(Change it here!)
 
评论由管理员查看后才能显示。the comment will be showed after it is checked by admin.
CopyRight © 心缘地方 2005-2999. All Rights Reserved