vbscript提取pdf内容(vbscript提取表单的数据)
本文目录
- vbscript提取表单的数据
- 如何自动从指定网页下载(或者打印)指定的pdf文档
- VBscript 如何用seek实现文件指针退一行
- vbscript自动生成水印的PDF文档为什么下载后,报文件已损坏的错误!
vbscript提取表单的数据
《%@LANGUAGE="VBSCRIPT" CODEPAGE="936"%》
***隐藏网址***
***隐藏网址***
《head》
***隐藏网址***
《title》无标题文档《/title》
《/head》
《body》
《span id="aa"》《/span》
《SCRIPT language=vbscript》
sub tijiao_onclick()
if thisform1.username.value="" then
msgbox "请填写您的用户名!"
thisform1.username.focus()
exit sub
end if
if thisform1.password.value="" then
msgbox "请填写您的密码!"
thisform1.password.focus()
exit sub
end if
if thisform1.checktype.value=1 then
aa.innerHTML="123"
end if
if thisform1.checktype.value=0 then
aa.innerHTML="123"
end if
thisform1.submit
end sub
《/SCRIPT》
《form id="thisform1" name="thisform1" method="post" action=""》
《label》姓名:
《input name="username" type="text" id="username" 》
《/label》
《p》
《label》口令:
《input name="password" type="password" id="password" 》
《/label》
《/p》
《p》aa
《label》
《input type="radio" name="checktype" value="1" 》
《/label》
bb
《label》
《input type="radio" name="checktype" value="0" 》
《/label》
《/p》
《p》
《label》
《input name="tijiao" type="button" id="tijiao" value="提交" 》
《/label》
《/p》
《/form》
《/body》
《/html》
如何自动从指定网页下载(或者打印)指定的pdf文档
我觉得重复的工作,建议用“按键精灵”来实现。在按键精灵编个脚本,自动运行就好了。按键精灵的脚本应该是vbscript吧,好久不用它了,不是太确认。
VBscript 如何用seek实现文件指针退一行
① OpenTextFile 本身只能向前(skip),不能后退。
② 可以readall之后, 再用Split提取:
Set fso = CreateObject("Scripting.FileSystemObject")
Set f = fso.OpenTextFile("config.txt", ForReading, True)
strText = f.ReadAll
f.Close
MyArray = Split(strText, vbCR)
i = LBound(MyArray)
Do While (i 《= UBound(MyArray))
WScript.Echo MyArray(i)
If ( (i+1) 《= UBound(MyArray)) Then
WScript.Echo MyArray(i+1)
End If
If ( (i+2) 《= UBound(MyArray)) Then
WScript.Echo MyArray(i+2)
End If
i = i + 2
Loop
③ 也可试试adodb stream,可以设置position,不过不见得比string处理来得方便。
vbscript自动生成水印的PDF文档为什么下载后,报文件已损坏的错误!
可能是IE6不提供文件路径检测功能,其他浏览器均检测,比如:d:\test.pdf文件,
更多文章:
培训机构老师何去何从(课外培训受到政策的冲击,教培机构的老师该何去何从)
2026年4月2日 18:20
什么叫完全二叉树(满二叉树和完全二叉树的区别和联系(完全二叉树与满二叉树的区别))
2026年4月2日 18:00
of great importance(“be of great importance”是什么意思)
2026年4月2日 17:40
另一程序正在使用此文件怎么解决(文件已在另一程序中打开的解决办法)
2026年4月2日 17:20
vbscript提取pdf内容(vbscript提取表单的数据)
2026年4月2日 16:40
parameters函数(英语parameter和argument作为参数的意思区别是什么)
2026年4月2日 16:20
feature形容词(请问Trait 和feature有什么区别能举例一下不谢谢!)
2026年4月2日 15:40




