神武3手游挂机脚本苹果硬件稳不稳

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

->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->
->

'==============================================================================
'
'The.NETPetShopBlueprintApplicationWebSiteSetup
'
'File:CreateWeb.vbs
'Date:November10,2001
'
'Createsanewvdirforthisproject.SetvNametonameoffolderondisk
'thatholdsthefiles.
'
'==============================================================================
'
'Copyright(C)2001MicrosoftCorporation
'
'==============================================================================
OptionExplicit

dimvPath
dimscriptPath
dimvName

vName="PetShop"'nameofwebtocreate

'*****************************************************************************
'
'1.CreatetheIISVirtualDirectory
'
'*****************************************************************************
'getcurrentpathtofolderandaddwebnametoit
scriptPath=left(Wscript.ScriptFullName,len(Wscript.ScriptFullName)-len(Wscript.ScriptName))
vPath=scriptPath&"Web"

'calltocreatevDir
CreateVDir(vPath)


'----------------------------------------------------------------------------
'
'HelperFunctions
'
'-----------------------------------------------------------------------------

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'CreatesasingleVirtualDirectory(codetakenfrommkwebdir.vbsand
'changedforsinglevDircreation).
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
SubCreateVDir(vPath)

DimvRoot,vDir,webSite
OnErrorResumeNext

'getthelocalhostdefaultweb
setwebSite=findWeb("localhost","DefaultWebSite")
ifIsObject(webSite)=Falsethen
Display"UnabletolocatetheDefaultWebSite"
exitsub
else
'displaywebSite.name
endif

'gettheroot
setvRoot=webSite.GetObject("IIsWebVirtualDir","Root")
If(Err<>0)Then
Display"Unabletoaccessrootfor"&webSite.ADsPath
Exitsub
else
'displayvRoot.name
EndIF

'deleteexistingwebifneeded
vRoot.Delete"IIsWebVirtualDir",vName
vRoot.SetInfo
Err=0'reseterror

'createthenewweb
SetvDir=vRoot.Create("IIsWebVirtualDir",vName)
If(Err<>0)Then
Display"Unabletocreate"&vRoot.ADsPath&"/"&vName&"."
exitsub
else
'displayvdir.name
endif

'setpropertiesonthenewweb
vDir.AccessRead=true
vDir.Path=vPath
vDir.Accessflags=529
VDir.AppCreateFalse
If(Err<>0)Then
Display"Unabletobindpath"&vPath&"to"&vRoot.Name&"/"&vName&".Pathmaybeinvalid."
exitsub
endIf

'commitchanges
vDir.SetInfo
If(Err<>0)Then
Display"Unabletosavechangesfor"&vRoot.Name&"/"&vName&"."
exitsub
endif

'reportallok
WScript.EchoNow&""&vName&"virtualdirectory"&vRoot.Name&"/"&vname&"createdsuccessfully."
EndSub

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'Findsthespecifiedweb.
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
FunctionfindWeb(computer,webname)
OnErrorResumeNext

Dimwebsvc,site
dimwebinfo
DimaBinding,binding

setwebsvc=GetObject(""&computer&"/W3svc")
if(Err<>0)then
exitfunction
endif
'Firsttrytoopenthewebname.
setsite=websvc.GetObject("IIsWebServer",webname)
if(Err=0)and(notisNull(site))then
if(site.class="IIsWebServer")then
'Herewefoundasitethatisawebserver.
setfindWeb=site
exitfunction
endif
endif
err.clear
foreachsiteinwebsvc
ifsite.class="IIsWebServer"then
'
'First,checktoseeiftheServerComment
'matches
'
Ifsite.ServerComment=webnameThen
setfindWeb=site
exitfunction
EndIf
aBinding=site.ServerBindings
if(IsArray(aBinding))then
ifaBinding(0)=""then
binding=Null
else
binding=getBinding(aBinding(0))
endif
else
ifaBinding=""then
binding=Null
else
binding=getBinding(aBinding)
endif
endif
ifIsArray(binding)then
if(binding(2)=webname)or(binding(0)=webname)then
setfindWeb=site
exitfunction
EndIf
endif
endif
next
EndFunction

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'Getsbindinginfo.
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
functiongetBinding(bindstr)

Dimone,two,ia,ip,hn

one=Instr(bindstr,":")
two=Instr((one+1),bindstr,":")

ia=Mid(bindstr,1,(one-1))
ip=Mid(bindstr,(one+1),((two-one)-1))
hn=Mid(bindstr,(two+1))

getBinding=Array(ia,ip,hn)
endfunction

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'Displayserrormessage.
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
SubDisplay(Msg)
WScript.EchoNow&".ErrorCode:"&Hex(Err)&"-"&Msg
EndSub

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'Displayprogress/tracemessage.
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
SubTrace(Msg)
WScript.EchoNow&":"&Msg
EndSub

'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
'Removetheweb.
'''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''''
SubDeleteWeb(WebServer,WebName)
'deletetheexsitingweb(ignoreerrorifmissing)
OnErrorResumeNext
DimvDir
display"deleting"&WebName

WebServer.Delete"IISWebVirtualDir",WebName
WebServer.SetInfo
IfErr=0Then
DISPLAY"WEB"&WebName&"deleted."
else
display"can'tfind"&webname
EndIf

EndSub
proe50脚本发生错误
如果不用组件的话,代码如下:

setie=createobject("internetexplorer.application")
ie.navigate"about:blank"
dountilie.readystate=4:wscript.sleep25:loop
setdoc=ie.document
setbody=doc.body
setwin=doc.parentwindow
body.innerhtml="<OBJECTid=dlgCLASSID='clsid:3050f819-98b5-11cf-bb82-00aa00bdce0b'></OBJECT>"
body.innertext=doc.getElementById("dlg").choosecolordlg
win.clipboarddata.setdata"text",body.innertext
ie.quit

如果用组件的话,代码如下:

flag=1+2
initialColor=&hff32ea
color=OpenColor(initialColor,flag)
MsgBox"Selectedcolor:"&hex(color)
functionOpenColor(initColor,flags)
setcomdlg=CreateObject("MSComDlg.CommonDialog")
comdlg.Color=initColor
comdlg.Flags=flags
comdlg.ShowColor
OpenColor=comdlg.Color
endfunction

组件相关文件下载
  其次在VB中建立一个新窗口,将MCI.VBX加入ToolBox中,将MCI控件拖放至窗体Form上,调整其大小,将九个按钮(从左至右为:Prev、Next、Play、Pause、Back、Step、Stop、Record和Eject)中Record按钮Visible属性设为False,其余按钮的Visible属性和Enabled属性设置为True,以上按钮的设置可通过MMControl的属性栏内“自定义”项来设置

OnErrorResumeNext
'替换某文件夹及其子文件夹下的所有快捷方式的指向路径

strFolderPath="D:\ProgramFiles\TrueLaunchBar\Shortcut\File\Style"'快捷方式的路径
strToReplace="\SOFTWARE"'被替环的字符串
strReplace="\[Software]"'替换成的字符串

SetwshShell=CreateObject("Shell.Application")
SetwshFSO=CreateObject("Scripting.FileSystemObject")

AlterSubFolderswshFSO.GetFolder(strFolderPath)

SubAlterSubFolders(Folder)

SetnpFolder=wshShell.Namespace(Folder.Path)
SetallFiles=Folder.Files

ForEachlnkFileInallFiles
'Wscript.EcholnkFile.Name
IfInStrRev(UCase(lnkFile.Name),".LNK")<>0Then'扩展名是否快捷方式
SetlnkItem=npFolder.ParseName(lnkFile.Name)
SetlnkItemLink=lnkItem.GetLink
'Wscript.Echo""""&lnkItemLink.Path&""""
lnkItemLink.Path=Replace(""""&lnkItemLink.Path&"""",strToReplace,strReplace)
lnkItemLink.WorkingDirectory=Replace(""""&lnkItemLink.WorkingDirectory&"""",strToReplace,strReplace)
lnkItemLink.Save()
EndIf
Next

ForEachSubfolderinFolder.SubFolders
'Wscript.Echo"Folder"&Subfolder.Path
SetnpFolder=wshShell.Namespace(Subfolder.Path)
SetobjFolder=wshFSO.GetFolder(Subfolder.Path)
SetallFiles=objFolder.Files

ForEachlnkFileinallFiles
IfInStrRev(UCase(lnkFile.Name),".LNK")<>0Then'扩展名是否快捷方式
SetlnkItem=npFolder.ParseName(lnkFile.Name)
SetlnkItemLink=lnkItem.GetLink
'Wscript.Echo""""&lnkItemLink.Path&""""
lnkItemLink.Path=Replace(""""&lnkItemLink.Path&"""",strToReplace,strReplace)
lnkItemLink.WorkingDirectory=Replace(""""&lnkItemLink.WorkingDirectory&"""",strToReplace,strReplace)
lnkItemLink.Save()
EndIf
Next

AlterSubFoldersSubfolder

Next
EndSub

  实时曲线的绘制一般借助于Timer控件来完成,使用Timer控件,定期将串口或是其他仪器中监测到的数据送往PictureBox1,而曲线的绘制一般画成折线图,采用PictureBox1的Line方法绘制.具体实现如下:

  1.选择需要显示的窗体Picture1,加入图片框Picture1,根据实际需要设置图片的大小并移到合适的位置,并在图片的外面画好量程----时间坐标系;然后加上Timer控件以及两个CommandButton,界面就基本设置好了

必需的文件abc.abc可用任何文本文件打开编辑,因此在你未学会加密算法之前可将文件命名为*.sys或*.dll,并放在windows或system目录下,甚至将其属性设为隐藏,哈哈,系统文件谁敢乱改

我们首先创建一个对 UserAccounts.CommonDialog 对象
的对象引用(名为“objDialog”)盛典红蜘蛛

->如何关闭ScreenSave功能,改变Timeout时间

  此外希望只有本次使用Windows时改变(下次开机时还原原状),则最後参数改为 SPIF_SENDWININICHANGE(没有SPIF_UPDATEINIFILE)

ConstSPI_SETSCREENSAVEACTIVE=17
ConstSPI_SETSCREENSAVETIMEOUT=15
ConstSPIF_SENDWININICHANGE=&H2
ConstSPIF_UPDATEINIFILE=&H1

PrivateDeclareFunctionSystemParametersInfoLib"user32"Alias_
  "SystemParametersInfoA"(ByValuActionAsLong,ByValuParamAsLong,_
  ByVallpvParamAsLong,ByValfuWinIniAsLong)AsLong

PrivateSubSetScreenSaveTimeout(ByValBySecondAsLong)
 CallSystemParametersInfo(SPI_SETSCREENSAVETIMEOUT,BySecond,0,_
     SPIF_UPDATEINIFILE SPIF_SENDWININICHANGE)
EndSub

PrivateSubEnableScreenSave()
 CallSystemParametersInfo(SPI_SETSCREENSAVEACTIVE,1,0,_
     SPIF_UPDATEINIFILE SPIF_SENDWININICHANGE)
EndSub
PrivateSubDisableScreenSave()
 CallSystemParametersInfo(SPI_SETSCREENSAVEACTIVE,0,0,_
     SPIF_UPDATEINIFILE SPIF_SENDWININICHANGE)
EndSub->
->


ConstssfCONTROLS=3

sConnectionName="本地连接"'可改成需要控制的连接名称,如"无线网络连接"等

sEnableVerb="启用(&A)"
sDisableVerb="禁用(&B)"'XP系统中应为"停用(&B)"

setshellApp=createobject("shell.application")
setoControlPanel=shellApp.Namespace(ssfCONTROLS)

setoNetConnections=nothing
foreachfolderiteminoControlPanel.items
iffolderitem.name="网络连接"then
setoNetConnections=folderitem.getfolder:exitfor
endif
next

ifoNetConnectionsisnothingthen
msgbox"未找到网络连接文件夹"
wscript.quit
endif

setoLanConnection=nothing
foreachfolderiteminoNetConnections.items
iflcase(folderitem.name)=lcase(sConnectionName)then
setoLanConnection=folderitem:exitfor
endif
next

ifoLanConnectionisnothingthen
msgbox"未找到'"&sConnectionName&"'item"
wscript.quit
endif

bEnabled=true
setoEnableVerb=nothing
setoDisableVerb=nothing
s="Verbs:"&vbcrlf
foreachverbinoLanConnection.verbs
s=s&vbcrlf&verb.name
ifverb.name=sEnableVerbthen
setoEnableVerb=verb
bEnabled=false
endif
ifverb.name=sDisableVerbthen
setoDisableVerb=verb
endif
next

'debuggingdisplaysleftjustincase...
'
'msgboxs':wscript.quit
'msgbox"Enabled:"&bEnabled':wscript.quit

'notsurewhy,butinvokeverbalwaysseemedtowork
'forenablebutnotdisable.
'
'savingareferencetotheappropriateverbobject
'andcallingtheDoItmethodalwaysseemstowork.
'
ifbEnabledthen
'oLanConnection.invokeverbsDisableVerb
oDisableVerb.DoIt
else
'oLanConnection.invokeverbsEnableVerb
oEnableVerb.DoIt
endif

'adjustthesleepdurationbelowasneeded...
'
'ifyoulettheoLanConnectiongooutofscope
'andbedestroyedtoosoon,theactionoftheverb
'maynottake...
'
wscript.sleep400

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