<output id="qn6qe"></output>

    1. <output id="qn6qe"><tt id="qn6qe"></tt></output>
    2. <strike id="qn6qe"></strike>

      亚洲 日本 欧洲 欧美 视频,日韩中文字幕有码av,一本一道av中文字幕无码,国产线播放免费人成视频播放,人妻少妇偷人无码视频,日夜啪啪一区二区三区,国产尤物精品自在拍视频首页,久热这里只有精品12

      VBS一鍵配置VOIP腳本(其中包括VBS操作JS網(wǎng)頁中的按鈕事件--直接執(zhí)行確認按鈕中的腳本代碼)

      Dim?ws,fso,IE
      Set?IE?=?WScript.createobject("InternetExplorer.Application")
      Set?ws?=?WScript.CreateObject?("WSCript.shell")
      Set?fso=CreateObject("scripting.filesystemobject")

      Const?reboot="/content.cgi?form=M_SAV"


      IE.menubar=0?'顯示IE對象菜單欄
      IE.AddressBar=1?'顯示IE對象地址欄
      IE.ToolBar=0?'顯示IE對象工具欄
      IE.StatusBar=1?'不顯示IE對象狀態(tài)欄
      IE.FullScreen=0?'全屏化IE對象
      IE.Height=768
      IE.Width=1024
      IE.Resizable=1?'設(shè)置IE對象大小是否可以被改動
      IE.visible=1?'設(shè)置是否可見?

      'IE.Navigate?"192.168.46.3"


      '==============讀Config配置文件=========
      ????
      filepath=createobject("Scripting.FileSystemObject").GetFile(Wscript.ScriptFullName).ParentFolder.Path
      file_config=filepath&"\config.ini"
      Set?file=fso.OpenTextFile(file_config,1)
      ????
      '===========取第一行數(shù)據(jù):號碼==============
      OneLine=file.ReadLine
      OneLineStr=Split(OneLine,"=")
      OneLineCount=UBound(split(OneLine,"="))
      'MsgBox?OneLineStr(1)???????????????????

      ????
      '===============取第二行數(shù)據(jù):密碼===========
      TwoLine=file.ReadLine
      TwoLineStr=Split(TwoLine,"=")
      TwoLineCount=UBound(split(TwoLine,"="))
      'MsgBox?TwoLineStr(1)
      ????
      '===============取第三行數(shù)據(jù):VOIP服務(wù)地址============
      ThreeLine=file.ReadLine
      ThreeLineStr=Split(ThreeLine,"=")
      ThreeLineCount=UBound(split(ThreeLine,"="))
      'MsgBox?ThreeLineStr(1)
      ????
      '===============取第四行數(shù)據(jù):對講設(shè)備地址============
      FourLine=file.ReadLine
      FourLineStr=Split(FourLine,"=")
      FourLineCount=UBound(split(FourLine,"="))
      'MsgBox?FourLineStr(1)
      ????
      '===============取第五行數(shù)據(jù):瀏覽器安裝目錄============
      FiveLine=file.ReadLine
      FiveLineStr=Split(FiveLine,"=")
      FiveLineCount=UBound(split(FiveLine,"="))
      'MsgBox?FiveLineStr(1)
      ????
      'MainWeb()

      Main()
      '==================================================

      Function?Main()

      ????IE.Navigate?FourLineStr(1)
      ????????
      ????Do?
      ????????WScript.Sleep?500
      ????????
      ????Loop?Until?IE.ReadyState=4
      ????
      ????
      ????Login()
      ????SipSetting()
      ????InputParm()
      ????VOIP()
      ????RebootSys()

      End?Function?
      '======================================================
      '登錄系統(tǒng)
      Function?Login()

      ????WScript.Sleep?1000
      ????ws.SendKeys?"^a"
      ????WScript.Sleep?200
      ????ws.SendKeys?"admin"
      ????ws.SendKeys?"{TAB}"
      ????ws.SendKeys?"^a"
      ????WScript.Sleep?200
      ????ws.SendKeys?"admin"
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{ENTER}"

      End?Function?
      '================================================
      '進入sipsetting菜單
      Function?SipSetting()

      ????If?IE.ReadyState=4?Then?
      ????
      ????????WScript.Sleep?1000
      ????????ws.SendKeys?"{TAB?5}"
      ????????WScript.Sleep?500
      ????????ws.SendKeys?"{ENTER}"
      ????????WScript.Sleep?500
      ????????ws.SendKeys?"{TAB}"
      ????????WScript.Sleep?500
      ????????ws.SendKeys?"{ENTER}"
      ????????WScript.Sleep?2000
      ????Else?
      ????
      ?????MsgBox?"進入配置界面失敗!"
      ?????
      ????End?If?

      End?Function?
      '=============================================
      '切換輸入界面
      Function?InputParm()

      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200????
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????
      ????
      ????ws.SendKeys?"{DOWN}"??'選擇開啟狀態(tài)
      ????WScript.Sleep?300

      End?Function?
      '=========================================
      '配置參數(shù)
      Function?VOIP()

      ????ws.SendKeys?"{TAB}"
      ????ws.SendKeys?"^a"
      ????WScript.Sleep?200
      ????ws.SendKeys?OneLineStr(1)??'display?name
      ????
      ????ws.SendKeys?"{TAB}"
      ????ws.SendKeys?"^a"
      ????WScript.Sleep?200
      ????ws.SendKeys?OneLineStr(1)???'user?number
      ????
      ????ws.SendKeys?"{TAB}"
      ????ws.SendKeys?"^a"
      ????WScript.Sleep?200
      ????ws.SendKeys?OneLineStr(1)???'auth?id
      ????
      ????ws.SendKeys?"{TAB}"????
      ????WScript.Sleep?200
      ????ws.SendKeys?"^a"
      ????WScript.Sleep?200????????????
      ????ws.SendKeys?TwoLineStr(1)???'password
      ????
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"^a"
      ????WScript.Sleep?200
      ????ws.SendKeys?ThreeLineStr(1)???'proxy?ip
      ????
      ????ws.SendKeys?"{TAB}"????????'domain
      ????WScript.Sleep?200
      ????ws.SendKeys?"^a"
      ????WScript.Sleep?200
      ????ws.SendKeys?ThreeLineStr(1)
      ????
      ????'=============保存===========
      ????ws.SendKeys?"{TAB?48}"
      ????WScript.Sleep?500
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?500
      ????ws.SendKeys?"{ENTER}"
      ????WScript.Sleep?1500
      ????
      End?Function?

      '========================================================
      '修改參數(shù)后重啟
      Function?RebootSys()

      ????WScript.Sleep?500
      ????ws.SendKeys?"{F4}"
      ????WScript.Sleep?500
      ????ws.SendKeys?"^a"
      ????WScript.Sleep?200
      ????ws.SendKeys?FourLineStr(1)&reboot?
      ????
      ????WScript.Sleep?500????
      ????
      '???Set?test=IE.document.getElementsByTagName?("Button")
      ????ws.SendKeys?"{ENTER}"
      ????
      ????WScript.Sleep?2000
      ????
      ????Set?ALL?=?Ie.Document.getElementsByTagName("input")??'檢測網(wǎng)頁元素是否標簽為input,且值等于Reboot

      ????For?Each?i?In?ALL

      ????If?i.value="Reboot"?Then

      ???????'i.Click??'點擊reboot按鈕
      ???????
      ????????WScript.Sleep?1000
      ???????
      ????????Ie.Document.parentwindow.execScript("top.location='content.cgi?_method_=reboot'")??'直接執(zhí)行reboot確認操作

      ????????Exit?For

      ?????
      ????End?If

      ????Next
      ????
      ????WScript.Sleep?3000????
      ????
      ????MsgBox?"配置已完成,設(shè)備正在重啟,請耐心等待...",,"提示"

      ????If?ws.AppActivate("來自網(wǎng)頁的消息")?Then?
      ????
      ????
      ????????ws.SendKeys?"{ENTER}"
      ????????WScript.Sleep?2000
      ????????
      ????????MsgBox?"配置已完成,設(shè)備正在重啟,請耐心等待...",,"提示"
      ????????
      ????Else?
      ????????'MsgBox?"配置未成功,請重新檢查配置!",,"提示"
      ????????
      ????End?If?

      End?Function?


      '====================================================================

      Function?MainWeb()

      ????'=============啟動地址=====================
      '方式一:自定義瀏覽器啟動,需配置路徑
      '???Function?login()
      ????????
      '???????ws.run?FiveLineStr(1)
      '???????WScript.Sleep?3000
      '???????ws.SendKeys?"{F4}"
      '???????WScript.Sleep?200
      '???????ws.SendKeys?"^a"
      '???????WScript.Sleep?500
      '???????ws.SendKeys?FourLineStr(1)
      '???????WScript.Sleep?500
      '???????ws.SendKeys?"{ENTER}"
      ????????????????
      '???End?Function????

      '方式二:用系統(tǒng)默認瀏覽器啟動?
      ????ws.Run?FourLineStr(1)

      ????'===============登錄設(shè)備=====================
      ????WScript.Sleep?5000
      ????ws.SendKeys?"^a"
      ????WScript.Sleep?200
      ????ws.SendKeys?"admin"
      ????ws.SendKeys?"{TAB}"
      ????ws.SendKeys?"^a"
      ????WScript.Sleep?200
      ????ws.SendKeys?"admin"
      ????ws.SendKeys?"{ENTER}"
      ????
      ????'============進入sip?setting菜單=============
      ????WScript.Sleep?2000
      ????ws.SendKeys?"{TAB?5}"
      ????WScript.Sleep?500
      ????ws.SendKeys?"{ENTER}"
      ????WScript.Sleep?500
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?500
      ????ws.SendKeys?"{ENTER}"
      ????WScript.Sleep?2000
      ????
      ????
      ????'==============進入編輯狀態(tài)=======================
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200????
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????
      ????
      ????
      ????ws.SendKeys?"{DOWN}"??'選擇開啟狀態(tài)
      ????WScript.Sleep?300

      ????
      ????'==============配置VOIP================
      ????ws.SendKeys?"{TAB}"
      ????ws.SendKeys?"^a"
      ????WScript.Sleep?200
      ????ws.SendKeys?OneLineStr(1)??'display?name
      ????
      ????ws.SendKeys?"{TAB}"
      ????ws.SendKeys?"^a"
      ????WScript.Sleep?200
      ????ws.SendKeys?OneLineStr(1)???'user?number
      ????
      ????ws.SendKeys?"{TAB}"
      ????ws.SendKeys?"^a"
      ????WScript.Sleep?200
      ????ws.SendKeys?OneLineStr(1)???'auth?id
      ????
      ????ws.SendKeys?"{TAB}"????
      ????WScript.Sleep?200
      ????ws.SendKeys?"^a"
      ????WScript.Sleep?200????????????
      ????ws.SendKeys?TwoLineStr(1)???'password
      ????
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?200
      ????ws.SendKeys?"^a"
      ????WScript.Sleep?200
      ????ws.SendKeys?ThreeLineStr(1)???'proxy?ip
      ????
      ????ws.SendKeys?"{TAB}"????????'domain
      ????WScript.Sleep?200
      ????ws.SendKeys?"^a"
      ????WScript.Sleep?200
      ????ws.SendKeys?ThreeLineStr(1)
      ????
      ????'=============保存===========
      ????ws.SendKeys?"{TAB?48}"
      ????WScript.Sleep?500
      ????ws.SendKeys?"{TAB}"
      ????WScript.Sleep?500
      ????ws.SendKeys?"{ENTER}"
      ????WScript.Sleep?1500
      ????'===============重啟==========
      ????
      ????ws.SendKeys?"{TAB?18}"
      ????WScript.Sleep?1000
      ????ws.SendKeys?"{ENTER}"
      ????WScript.Sleep?1000
      ????ws.SendKeys?"{TAB?2}"
      ????WScript.Sleep?500
      ????ws.SendKeys?"{ENTER}"
      ????WScript.Sleep?1000
      ????
      ????If?ws.AppActivate("來自網(wǎng)頁的消息")?Then?
      ????
      ????????ws.SendKeys?"{ENTER}"
      ????????WScript.Sleep?1000
      ????????
      ????????MsgBox?"配置已完成,設(shè)備正在重啟,請耐心等待...",,"提示"
      ????????
      ????Else?
      ????????MsgBox?"配置未成功,請重新檢查配置!",,"提示"
      ????????
      ????End?If?

      End?Function?



      Set?ws=Nothing?
      Set?IE=Nothing?
      Set?fso=Nothing?

       

       

       

       

      ##################################################網(wǎng)頁部分JS代碼:

       

      <div id="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?_method_=reboot';" target="_top" value="Reboot"></a>
      </td></table></form>

      posted @ 2014-08-15 11:06  狂師  閱讀(1061)  評論(0)    收藏  舉報
      主站蜘蛛池模板: 在线涩涩免费观看国产精品| 精品少妇av蜜臀av| 无码国内精品久久人妻蜜桃| 午夜综合网| 国产成人精品三上悠亚久久| 9丨精品国产高清自在线看| 国产精品久久久久久福利 | 亚洲夂夂婷婷色拍ww47| 读书| 人妻换着玩又刺激又爽| 亚洲欧美中文日韩在线v日本| 日韩无人区码卡1卡2卡| 亚洲精品视频免费| 老熟女多次高潮露脸视频| 国产精品 无码专区| 欧洲无码一区二区三区在线观看| 激情综合网址| 九九热精品在线免费视频| 少妇无码AV无码专区| 国产一区二区三区九九视频| 亚洲性线免费观看视频成熟| 国产在线亚州精品内射| 国产女人喷潮视频免费| 欧美性潮喷xxxxx免费视频看 | 亚洲色婷婷综合开心网| 国产精品国产三级国快看| 广德县| 开心五月激情综合久久爱| 五月综合激情婷婷六月色窝 | 一卡二卡三卡四卡视频区| 国内精品一区二区不卡| 精品一区二区免费不卡| 老湿机69福利区无码| 国产真人无遮挡免费视频| 亚洲东京色一区二区三区| 玉龙| 国产精品人伦一区二区三| A级毛片100部免费看| 十堰市| 国产精品亚洲专区无码导航| 亚洲影院丰满少妇中文字幕无码|