- 帖子
- 5923
- 主題
- 13
- 精華
- 1
- 積分
- 5986
- 點名
- 0
- 作業系統
- win10
- 軟體版本
- Office 2010
- 閱讀權限
- 150
- 性別
- 男
- 來自
- 台灣基隆
- 註冊時間
- 2010-5-1
- 最後登錄
- 2022-1-23
        
|
2#
發表於 2020-4-23 16:24
| 只看該作者
回復 1# eric7765 - Option Explicit
- Sub Ex_網路郵局()
- With CreateObject("InternetExplorer.Application")
- .Visible = True
- '.Navigate "http://hk799.net/" '***這網址拒絕讀取
- .Navigate "https://hk799.net/tpl/login_webmail.php" '***改用這網址試試看***
- Do While .Busy Or .ReadyState <> 4: DoEvents: Loop
- '<input name="inpN" tabindex="1" class="save_01" id="inpN" type="text">
- .Document.getElementById("inpN").Value = "帳號"
- '<input name="inpP" tabindex="2" class="save_01" id="inpP" type="password">
- .Document.getElementById("inpP").Value = "密碼"
- Do While .Busy Or .ReadyState <> 4: DoEvents: Loop
- '<input name="loginbutton" tabindex="3" onclick="proLogin(document.kk.inpN.value,document.kk.inpP.value);" type="button" value="登入">
- .Document.querySelector("input[name='loginbutton'][tabindex='3'][type='button']").FireEvent ("onclick")
- ' .Quit '關閉網頁
- End With
- End Sub
複製代碼 |
|