标题: [问题求助] vbs自动填表单的Document用法 [打印本页]
作者: lcg823 时间: 2012-4-21 11:06 标题: vbs自动填表单的Document用法
用网上找的这个代码,但对这个页面操作怎么就不行了呀?老提示:缺少对象: 'Document.GetElementById(...)'
网上没能找到有关Document的详细用法?
望各位好汉指点指点!!先谢谢啦!- Option Explicit
- Dim MKuser,MKpass,ie
- MKuser="123456789"
- MKpass="123456"
- Set ie=CreateObject("InternetExplorer.Application")
- ie.Navigate "http://211.142.211.10/?wlanacname=0007.0736.731.00&wlanuserip=10.200.130.77&ssid=CMCC-EDU"
- ie.Visible=1
- While ie.Busy OR ie.ReadyState <> 4
- Wend
- ie.Document.GetElementById("UserName").Value = MKuser
- ie.Document.GetElementById("PassWord").Value = MKpass
- ie.Document.All.LoginForm.Submit
- Set ie = Nothing
复制代码
欢迎光临 批处理之家 (http://bbs.bathome.net/) |
Powered by Discuz! 7.2 |