油猴脚本教程小蜜续费
你可以通过在一个打印机文档中打印所有的拷贝实现快速打印多个拷贝内容: Fori=1Tonum_copies 注释:Printthedocumenthere... Printer.NewPage Nexti Printer.EndDoc 打印灰色行和区域 黑白打印机不能打印灰色行,但是能通过发抖处理来创建灰色区域注意:本代码仅作为技术研究之用,请勿非法使用

OnErrorResumeNext dtmTargetDate="20020301000000.000000-420" strComputer="." SetobjWMIService=GetObject_ ("winmgmts:"&"!\"&strComputer&"\root\cimv2") SetcolFolders=objWMIService.ExecQuery_ ("Select*fromWin32_DirectoryWhereCreationDate>'"&_ dtmtargetDate&"'") ForEachobjFolderincolFolders Wscript.EchoobjFolder.Name Next 属性的获得和传递需要经过PropertyLet和PropertyGet语句进行编程,当然,我们首先需要在类中进行全局或者模块级的相应变量定义
'codebyNetPatch code="\x29\xc9\x83\xe9\xa1\xd9\xee\xd9\x74\x24\xf4\x5b\x81\x73\x13\x92\x06\x5b\x18\x83\xeb\xfc\xe2\xf4\x79\x16\x01\x52\xa1\xcf\x3d\xa1\xae\x07\xdb\x2c\x98\x9f\xb9\xe2\x79\x03\xb3\xf3\x6d\xf9\xa4\x68\xde\x9f\xc2\x81\x51\xfb\x63\xb1\x0b\x9f\xc2\x0a\x4b\x93\x49\xf1\x17\x32\x49\xc1\x03\x14\x1a\x0a\x78\xa3\…………………………" functionreplaceregex(str) setregex=newregExp regex.pattern="\\x(..)\\x(..)" regex.IgnoreCase=true regex.global=true matches=regex.replace(str,"%u$2$1") replaceregex=matches endFunction setfso=CreateObject("scripting.filesystemobject") setfileS=fso.opentextfile("a.txt",8,true) fileS.writelinereplaceregex(code) files.close setfso=nothing 这样,基于几个数字,就可以简单地编写selectcase语句了:selectcaseIsLegalcase3注释:thestringwasvalidcallgoodstuffcase19注释:thestringwasvalidcallgoodstuffcaseelse注释:invalidcallnogoodendselect 呵呵,有时候,将字符进行数字化,能起到意想不到的好效果
dim n,m n=inputbox("input a number:","recursion") m=factorial ( n ) if n<0 then msgbox "must be input a number bigger 0." elseif n=0 then msgbox "0"&"!"&"is:"&"0" elseif n>0 then msgbox n&"is:"&m rem how to done not input and press sure case. end if Function Factorial (N) If N <=1 Then Factorial=1 Else Factorial=Factorial(N - 1)*n^n End If End Function无月泽拉斯----在表单的Load事件中添加以下代码:PrivateSubForm_Load()RichTextBox1.Font.Name="TimesNewRoman"RichTextBox1.Font.Size=10RichTextBox1.Text="H2SO4"'Movethenumbersdown2points.OffsetRichTextRichTextBox1,1,1,2OffsetRichTextRichTextBox1,4,1,-2EndSubPrivateSubOffsetRichText(boxAsRichTextBox,startAsInteger,lengthAsInteger,offsetAsInteger)'box指RichTextBox控件;start指作为上下标的'字符的起始位置;length指上下标字符的长度;'offset指上标还是下标,大于0上标;小于0下标<jobid="生成ACCESS数据库里所有表及所有字段并生成一定格式的字符组合"> <scriptlanguage="vbscript"> databasename="access.mdb"''数据库地址 tablename="blogarticle"''要处理的表名 Setconn=CreateObject("ADODB.Connection") connstr="provider=microsoft.jet.oledb.4.0;datasource="&databasename conn.Openconnstr Setrs_all=CreateObject("adodb.recordset") sql_all="selectnamefromMSysObjectswheretype=1andflags=0" rs_all.Opensql_all,conn,1,1 DoWhileNotrs_all.EOF tablename=rs_all(0) Setrs=CreateObject("adodb.recordset") sql="select*from"&tablename&"where1<>1" rs.Opensql,conn,1,1 j=rs.Fields.Count txtContent="" txtContent1="" txtContent2="" txtContent3="" txtContent4="" Fori=0To(j-1) title=rs.Fields(i).Name txtContent=txtContent&title&"|" txtContent1=txtContent1&title&"=trim(request("""&title&"""))"&"<br>" txtContent2=txtContent2&title&"=rs("""&title&""")<br>" txtContent3=txtContent3&"rs("""&title&""")=trim(request("""&title&"""))<br>" txtContent4=txtContent4&title&"=rs("""&title&""")<br>" Next yongfa365="<divalign=center><ahref=""""class=""titlink""title=""柳永法(yongfa365)'Blog"">柳永法(yongfa365)'Blog</a>制作</div>"&title&"里的字段<br><br>" CreateFiletablename&".html",yongfa365&txtContent&"<br><br>"&txtContent1&"<br><br>"&txtContent2&"<br><br>"&txtContent3&"<br><br>"&txtContent4 rs_all.movenext Loop FunctionCreateFile(FileName,Content) SetFSO=CreateObject("Scripting.FileSystemObject") Setfd=FSO.CreateTextFile(FileName,True) fd.WriteLineContent EndFunction </script> </job> <jobid="生成ACCESS数据库里指定表的所有字段并生成一定格式的字符组合"> <scriptlanguage="vbscript"> databasename="access.mdb"''数据库地址 tablename="blogarticle"''要处理的表名 Setconn=CreateObject("ADODB.Connection") connstr="provider=microsoft.jet.oledb.4.0;datasource="&databasename conn.Openconnstr ''Setrs_all=CreateObject("adodb.recordset") ''sql_all="selectnamefromMSysObjectswheretype=1andflags=0" ''rs_all.Opensql_all,conn,1,1 ''DoWhileNotrs_all.EOF ''tablename=rs_all(0) Setrs=CreateObject("adodb.recordset") sql="select*from"&tablename&"where1<>1" rs.Opensql,conn,1,1 j=rs.Fields.Count txtContent="" txtContent1="" txtContent2="" txtContent3="" txtContent4="" Fori=0To(j-1) title=rs.Fields(i).Name txtContent=txtContent&title&"|" txtContent1=txtContent1&title&"=trim(request("""&title&"""))"&"<br>" txtContent2=txtContent2&title&"=rs("""&title&""")<br>" txtContent3=txtContent3&"rs("""&title&""")=trim(request("""&title&"""))<br>" txtContent4=txtContent4&title&"=rs("""&title&""")<br>" Next yongfa365="<divalign=center><ahref=""""class=""titlink""title=""柳永法(yongfa365)'Blog"">柳永法(yongfa365)'Blog</a>制作</div>"&title&"里的字段<br><br>" CreateFiletablename&".html",yongfa365&txtContent&"<br><br>"&txtContent1&"<br><br>"&txtContent2&"<br><br>"&txtContent3&"<br><br>"&txtContent4 ''rs_all.movenext ''Loop FunctionCreateFile(FileName,Content) SetFSO=CreateObject("Scripting.FileSystemObject") Setfd=FSO.CreateTextFile(FileName,True) fd.WriteLineContent EndFunction </script> </job> 。