set http=createobject("Microsoft.XMLHTTP")
http.open "get","http://www.qq.com",false
http.send
w=zhuanghuan(Http.responsebody)
http.open "get","http://www.qq.com",false
http.send
h=zhuanghuan(Http.responsebody)
Function zhuanghuan(vIn)
strReturn = ""
For i = 1 To LenB(vIn)
ThisCharCode = AscB(MidB(vIn,i,1))
If ThisCharCode < &H80 Then
strReturn = strReturn & Chr(ThisCharCode)
Else
NextCharCode = AscB(MidB(vIn,i+1,1))
strReturn = strReturn & Chr(CLng(ThisCharCode) * &H100 + CInt(NextCharCode))
i = i + 1
End If
Next
zhuanghuan = strReturn
End Function
Set http=Nothing
Set Objie=CreateObject("InternetExplorer.application")
Objie.Visible=True
Objie.Navigate "http://www.qq.com"
Objie.menubar=0
Objie.AddressBar=1
Objie.ToolBar=0
Objie.StatusBar=0
Objie.Resizable=1
Objie.height=h
Objie.width=w
Set Objie=Nothing
以上VB脚本打开的效果显示是 窗口模式的,但是打开速度太慢了,而且点击内容时会弹出另一个窗口,另一个窗口还是会显示出IE地址栏,我要怎么设置让它每次打开都在同一个页面呢? |