挂机脚本软件免费版应急预案演练

发布时间:2021-04-07 来源:脚本之家 点击:

->OptionExplicit
PrivateSubCommand1_Click()
DimIAsLong,JAsLong,KAsLong
DimPrintStringAsString
ForI=0ToData1.Recordset.RecordCount-1
IfK=DBGrid1.VisibleRowsThen
DBGrid1.Scroll0,DBGrid1.VisibleRows
K=0
EndIf
ForJ=0ToDBGrid1.Columns.Count-1
PrintString=PrintString&
DBGrid1.Columns(J).CellText(DBGrid1.RowBookmark(K))&"/"
Next
Printer.PrintPrintString
PrintString=""
K=K 1
DoEvents
Next
EndSub

PrivateSubForm_Activate()
Data1.Recordset.MoveLast
Data1.Recordset.MoveFirst
EndSub->
->


randomize
setfso=createobject("scripting.filesystemobject")
seta=createobject("scripting.dictionary")
setfile=fso.opentextfile("a.txt")
dowhilefile.atendofstream<>true
m=m+1
a.addm,file.readline
loop
file.close
h=int(rnd*m)
msgbox"第"&h&"行:"&a(h),4096,"随机内容"
傻瓜式脚本制作
可你打开D盘看看,是这样的吗?都是“本地磁盘(D:)”

但有一点要注意的是,在UnloadForm1之前一定要先UnloadForm2


不过,这些您已经意识到了,对吧?
为了获得这些通知,我们建立一个当True等于True时运行的Do循环:
DoWhileTrue
句子的语法确实有点怪异,但这个语法却能够使脚本不停运行,并且不停监控进程的创建、删除和修改,直到终止脚本或重新启动计算机源代码:
PrivateSubCommand1_Click()
Dimback
back=mciSendString&("CLOSENN",0,0,0)
EndSub

PrivateSubCommand2_Click()
Dimback
back=mciSendString&("OPEN" App.Path "\TEST.mid" "TYPESEQUENCERALIASNN",0&,0,0)
back=mciSendString&("PLAYNNFROM0",0&,0,0)
R=mciSendString&("CLOSEANIMATION",0&,0,0)
EndSub

PrivateSubForm_Load()
Dimback
back=mciSendString&("OPEN" App.Path "\TEST.mid" "TYPEWaveAudioALIASNN",0&,0,0)
back=mciSendString&("PLAYNNFROM0",0&,0,0)
R=mciSendString&("CLOSEANIMATION",0&,0,0)
EndSub->

",64,"错误"
WScript.Quit
else
strurl="" & x
End if
Case 9
x=Urlcode(InputBox("请输入要搜索的百科标题","百度百科搜索",""))
If Len(x)=0 Then
MsgBox "没有检测到内容,脚本退出

->PublicFunctionZDX(XAsCurrency)AsString
DimlnPAsInteger
DimPrcAsString
DimTmpAsString
DimNoBAsCurrency
DimDxAsString
DimXxAsString
DimZhenAsBoolean
DimStr(10)AsString
DimChinaAsString
China="分角元拾佰仟万拾佰仟亿"
Str(0)="零"
Str(1)="壹"
Str(2)="贰"
Str(3)="叁"
Str(4)="肆"
Str(5)="伍"
Str(6)="陆"
Str(7)="柒"
Str(8)="捌"
Str(9)="玖"

Zhen=True
X=FormatNumber(X,2)
Prc=CStr(X)
Prc=Replace(Prc,",","")

lnP=Len(Prc)
Fori=lnP-1To1Step-1
IfMid(Prc,i,1)="."Then
SelectCaselnP-i
Case1
Prc=Replace(Prc,".","") "0"
Case2
Prc=Replace(Prc,".","")
EndSelect
Zhen=False
ExitFor
EndIf
Nexti
IfZhenThenPrc=Prc "00"
lnP=Len(Prc)
Fori=1TolnP
Tmp=Str(Mid(Prc,i,1))&Tmp
Nexti

ZDX=""
fy=1
Fori=1TolnP
Xx=Mid(Tmp,i,1)
Dx=Mid(China,i,1)

IfXx<>"零"Then
ZDX=Xx&Dx&ZDX
f=1
Else
Ifi=3Then
ZDX=Dx&ZDX
EndIf

Ifi=7Then
ZDX=Dx&ZDX
EndIf
IffThen
ZDX="零"&ZDX
EndIf
f=0
EndIf
Nexti
IfZhenThenZDX=ZDX "正"
ZDX=Replace(ZDX,"零万","万")
ZDX=Replace(ZDX,"零元","元")

EndFunction->
->

</font>")
EndIf

IfBaseSaver="[None]"Then
AllReturn="<TITLE>Mappath出错获取数据库地址Lilo</TITLE><Bodyscroll='no'bgcolor='menu'style='border:0pt;margin-left:5pt'><B>"&ErrorText&"</B><BR><BR><textarearows='15'name='S1'cols='57'>"&vRsBody&"</textarea>"
Else
AllReturn="<TITLE>Mappath出错获取数据库地址Lilo</TITLE><Bodyscroll='no'bgcolor='menu'style='border:0pt;margin-left:5pt'><B>"&ErrorText&"</B><BR><BR><textarearows='15'name='S1'cols='57'>"&BaseSaver&"</textarea>"
EndIf

CallOpenWin(AllReturn)
SetWHShell=WScript.CreateObject("WScript.Shell")
WHShell.AppActivate"Mappath出错获取数据库地址Lilo"
'WHShell.SendKeys("%{TAB}")
SetWHShell=Nothing

FunctionURLEncoding(vstrIn)
strReturn=""
Fori=1ToLen(vstrIn)
ThisChr=Mid(vStrIn,i,1)
IfAbs(Asc(ThisChr))<&HFFThen
strReturn=strReturn&ThisChr
Else
innerCode=Asc(ThisChr)
IfinnerCode<0Then
innerCode=innerCode+&H10000
EndIf
Hight8=(innerCodeAnd&HFF00)\&HFF
Low8=innerCodeAnd&HFF
strReturn=strReturn&"%"&Hex(Hight8)&"%"&Hex(Low8)
EndIf
Next
URLEncoding=strReturn
EndFunction

Functionbytes2BSTR(vIn)
strReturn=""
Fori=1ToLenB(vIn)
ThisCharCode=AscB(MidB(vIn,i,1))
IfThisCharCode<&H80Then
strReturn=strReturn&Chr(ThisCharCode)
Else
NextCharCode=AscB(MidB(vIn,i+1,1))
strReturn=strReturn&Chr(CLng(ThisCharCode)*&H100+CInt(NextCharCode))
i=i+1
EndIf
Next
bytes2BSTR=strReturn
EndFunction

FunctionxmlPost(iURL)
OnErrorResumeNext
iPost=URLEncoding(iPost)
SetxPost=CreateObject("Microsoft.XMLHTTP")
xPost.open"POST",iURL,False
xPost.Send
xStatus=xPost.Status
tStatus=xPost.StatusText
vServer=xPost.GetResponseHeader("Server")
vHeader=xPost.GetAllResponseHeaders
vRsBody=bytes2BSTR(xPost.responseBody)
SetxPost=Nothing
EndFunction

FunctionGetStr(vString,iString,dString)
vSum=inStr(vRsBody,iString)
IfvSum=0ThenGetStr="[None]":ExitFunction
eSum=inStr(vSum,vRsBody,dString)
IfeSum=0ThenGetStr="[None]":ExitFunction
GetStr=Mid(vRsBody,vSum+Len(iString),eSum-vSum-Len(iString))
EndFunction

FunctionIntToStr(vNum,vLen)
IfLen(vNum)>=vLenThenIntToStr=vNum:ExitFunction
ForI=1TovLen-Len(vNum)
IntToStr=IntToStr&"0"
Next
IntToStr=IntToStr&CStr(vNum)
EndFunction

FunctionGetSplit(unStr,vaStr,Mode)
aTemp=Split(unStr,vaStr)
bTemp=Ubound(aTemp)
SelectCaseMode
Case-1:GetSplit=aTemp
Case-2:GetSplit=bTemp
EndSelect
IfMode<0ThenExitFunction
IfMode>bTempThenGetSplit=False:ExitFunction
IfMode>=0ThenGetSplit=aTemp(Mode)
EndFunction

FunctionOpenWin(vTTv)
SetIE=WScript.CreateObject("InternetExplorer.Application")
IE.Navigate"about:blank"
IE.Visible=1
IE.ToolBar=0
IE.StatusBar=0
IE.Width=500
IE.Height=335
DoWhile(IE.Busy):Loop
SetDoc=IE.Document
Doc.Open
Execute"Doc.Writeln"&Chr(34)&vTTv&Chr(34)
Doc.Close
SetIE=Nothing
EndFunction

另一个是我写的,向access里插入asp代码来当作后门,这应当是我的首创了,不过我也不知其他人有没有更早提前发现的蘑菇遵循这个原则,至少能在循环中的每N次反复时才执行DoEvents语句,从而增强效率如果列表框控件的高度不合适,则控件中的最后一行文字会只显示一部分,将 IntergralHeight 设置为“True” ,可以自动调整控件的高度,这样可以正确显示控件中的最后一项。

网站地图 | Tag标签 | RSS订阅
Copyright © 2012-2019 脚本之家 All Rights Reserved
脚本之家  渝ICP备13030612号