[新手上路]批处理新手入门导读[视频教程]批处理基础视频教程[视频教程]VBS基础视频教程[批处理精品]批处理版照片整理器
[批处理精品]纯批处理备份&还原驱动[批处理精品]CMD命令50条不能说的秘密[在线下载]第三方命令行工具[在线帮助]VBScript / JScript 在线参考
返回列表 发帖

[特效代码] VBS或批处理同时打开两个网站如何指定大小?

用 VBS 或批处理同时打开两个网站 能能定大小
指定IE
我已经做到了 就是控制不了大小
高手们帮下
Set oShell = WScript.CreateObject ("WSCript.shell")

oShell.run("iexplore.exe http://baidu.com")
oShell.run("iexplore.exe http://zhidao.baidu.com")

在我的基础上 帮我做个能控制打开窗口大小
如果可以能做到一打开就两个窗口拼排 最好

怎么没人理我呢???????????

TOP


set ie = wscript.createobject("internetexplorer.application")
调用这个控件,会有一些属性可以设置。
由于我刚开始学习VBS,还在尝试写代码中
---学无止境---

TOP

楼上的代码可以办到。

TOP

原帖由 broly 于 2010-11-4 21:51 发表

set ie = wscript.createobject("internetexplorer.application")
调用这个控件,会有一些属性可以设置。
由于我刚开始学习VBS,还在尝试写代码中


给具体点嘛,谢谢 啦

TOP

参考InternetExplorer.Application的属性和方法

TOP

回复 5楼 的帖子

测试可用
  1. dim ie1,ie2,avW,avH
  2. set ie1 = wscript.createobject("internetexplorer.application")
  3. set ie2 = wscript.createobject("internetexplorer.application")
  4. avW = createobject("htmlfile").parentWindow.screen.availWidth
  5. avH = createobject("htmlfile").parentWindow.screen.availHeight
  6. with ie1
  7. .visible = true
  8. .navigate("http://www.baidu.com")
  9. .width = avw/2
  10. .height = avh
  11. .left = 0
  12. .top = 0
  13. end with
  14. wscript.sleep 1000
  15. with ie2
  16. .visible = true
  17. .navigate("http://ip138.com")
  18. .width = avw/2
  19. .height = avh
  20. .left = avw/2
  21. .top = 0
  22. end with
  23. set ie1 = nothing
  24. set ie2 = nothing
复制代码
---学无止境---

TOP

怎么用不了呀?
??

TOP

回复 8楼 的帖子

你的是什么系统的。WIN7测试似乎用不了,WINXP SP3测试可用
---学无止境---

TOP

我的系统也是XP SP3

TOP

回复 10楼 的帖子

换个文件名试试,以后不要再用1.bat和1.vbs.

TOP

回复 10楼 的帖子

你的默认浏览器是不是IE?
如果不是,请调为IE
---学无止境---

TOP

可以用啦,谢谢啊!!!!!

TOP

返回列表