vbs调用浏览器对象问题

来源:百度知道 编辑:UC知道 时间:2024/07/02 00:16:38
下面的代码禁止访问,
a.focus,a.blur却成功了!
求解决办法,先谢过了!

set ie=createobject("htmlfile")

set a=ie.parentwindow.open("http://tieba.baidu.com/f?kz=205761378")

a.document.post.co.focus

a.document.post.co.value="me"

a.document.post.Submit3.click

再次感谢!
我就是求解决办法啊!
也谢你了^_^

Set ie = CreateObject("internetexplorer.application")
ie.navigate "http://tieba.baidu.com/f?kz=205761378"
ie.Visible = True
While ie.busy Or ie.readystate <> 4
Wend
ie.document.Post.co.Focus
ie.document.Post.co.Value = "me"
ie.document.Post.Submit3.Click

这样即可,如果不想出现IE窗口,把ie.Visible = True这句去掉

是不是跨域了,不让呀,我见过跨域不行的

mei