标题: (已解决)一个网站的登录VBS问题 [打印本页]
作者: zhiminhua 时间: 2015-1-26 18:41 标题: (已解决)一个网站的登录VBS问题
本帖最后由 zhiminhua 于 2015-1-26 20:04 编辑
- set objExcel = CreateObject("Excel.Application")
- objExcel.Visible = true
- Set objWorkbooks = objExcel.Workbooks.open ("D:\aa.xls",3,false)
- for i=1 to 5
- x=objExcel.Cells(i,2).value
- y=objExcel.Cells(i,3).value
- set ie2=WScript.CreateObject("InternetExplorer.Application")
- ie2.visible=true
- ie2.navigate "http://www.co188.com/"
-
- Do
- Wscript.Sleep 300
- Loop Until ie2.ReadyState=4
-
- ie2.document.getElementById("username").value=x
- ie2.document.getElementById("password").value=y
- document.getElementsByid("sumbit").click()
-
- Wscript.Sleep 10000
- CreateObject("WScript.Shell").Run "taskkill /f /im iexplore.exe", 0
- Wscript.Sleep 4000
- next
复制代码
作者: Batcher 时间: 2015-1-26 19:57
问题在哪里?
作者: zhiminhua 时间: 2015-1-26 20:01
你好,有高手给我解决了,谢谢你。
欢迎光临 批处理之家 (http://bathome.net./) |
Powered by Discuz! 7.2 |