脚本专栏 
首页 > 脚本专栏 > 浏览文章

VBS一键配置VOIP脚本代码

(编辑:jimmy 日期: 2024/11/17 浏览:3 次 )

代码比较长,对vbs感兴趣的朋友可以参考一下

Dim"InternetExplorer.Application")
Set"WSCript.shell")
Set"scripting.filesystemobject")

Const"/content.cgi"

IE.menubar=0"192.168.46.3"


'==============读Config配置文件=========
"Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).ParentFolder.Path
file_config=filepath&"\config.ini"
Set"=")
OneLineCount=UBound(split(OneLine,"="))
'MsgBox"=")
TwoLineCount=UBound(split(TwoLine,"="))
'MsgBox"=")
ThreeLineCount=UBound(split(ThreeLine,"="))
'MsgBox"=")
FourLineCount=UBound(split(FourLine,"="))
'MsgBox"=")
FiveLineCount=UBound(split(FiveLine,"="))
'MsgBox"^a"
"admin"
"{TAB}"
"^a"
"admin"
"{TAB}"
"{ENTER}"

End"{TAB"
"{ENTER}"
"{TAB}"
"{ENTER}"
"进入配置界面失败!"
"{TAB}"
"{TAB}"
"{TAB}"
"{TAB}"
"{TAB}"
"{TAB}"
"{TAB}"
"{TAB}"
"{TAB}"
"{TAB}"
"{TAB}"
"{TAB}"
"{DOWN}""{TAB}"
"^a"
"{TAB}"
"^a"
"{TAB}"
"^a"
"{TAB}""^a"
"{TAB}"
"^a"
"{TAB}""^a"
"{TAB"
"{TAB}"
"{ENTER}"
"{F4}"
"^a"
"Button")
"{ENTER}"
"input")"Reboot""top.location='content.cgi")"配置已完成,设备正在重启,请耐心等待...",,"提示"

"来自网页的消息")"{ENTER}"
"配置已完成,设备正在重启,请耐心等待...",,"提示"
"配置未成功,请重新检查配置!",,"提示"
"{F4}"
'"^a"
'"{ENTER}"
"^a"
"admin"
"{TAB}"
"^a"
"admin"
"{ENTER}"
"{TAB"
"{ENTER}"
"{TAB}"
"{ENTER}"
"{TAB}"
"{TAB}"
"{TAB}"
"{TAB}"
"{TAB}"
"{TAB}"
"{TAB}"
"{TAB}"
"{TAB}"
"{TAB}"
"{TAB}"
"{TAB}"
"{DOWN}""{TAB}"
"^a"
"{TAB}"
"^a"
"{TAB}"
"^a"
"{TAB}""^a"
"{TAB}"
"^a"
"{TAB}""^a"
"{TAB"
"{TAB}"
"{ENTER}"
"{TAB"
"{ENTER}"
"{TAB"
"{ENTER}"
"来自网页的消息")"{ENTER}"
"配置已完成,设备正在重启,请耐心等待...",,"提示"
"配置未成功,请重新检查配置!",,"提示"
"content" width="650">
<form name="M_SAV" method="GET" enctype="multipart/form-data" onReset="" action="content.cgi">
<input type=HIDDEN name="_method_" value="apply">
<input type=HIDDEN name="form" value="M_SAV">
<input type=HIDDEN name="commit" value="0">
<table id="cFORM" width="650" border="0" cellspacing="0" cellpadding="0" >
<tr><td>&nbsp</td></tr>
</table><table width="500"><td align="center">
<input type=BUTTON onclick="javascript:if ( confirm('Reboot') ) top.location='content.cgi" target="_top" value="Reboot"></a>
</td></table></form>

这篇文章就介绍到这了,希望大家以后多多支持。

上一篇:监测windows主机网络接口利用率的vbs代码
下一篇:磁盘IO利用率监控VBS脚本(windows)
Windows上运行安卓你用过了吗
在去年的5月23日,借助Intel Bridge Technology以及Intel Celadon两项技术的驱动,Intel为PC用户带来了Android On Windows(AOW)平台,并携手国内软件公司腾讯共同推出了腾讯应用宝电脑版,将Windows与安卓两大生态进行了融合,PC的使用体验随即被带入到了一个全新的阶段。
友情链接:杰晶网络 DDR爱好者之家 南强小屋 黑松山资源网 白云城资源网 SiteMap