摘要: 获取分辨率:Dim width,heightwidth=CreateObject("HtmlFile").ParentWindow.Screen.AvailWidthheight=CreateObject("HtmlFile").ParentWindow.Screen.AvailHeightScreen 对象Screen 对象包含有关客户端显示屏幕的信息。注释:没有应用于 screen 对象的公开标准,不过所有浏览器都支持该对象。IE:Internet Explorer,F:Firefox,O:Opera.Screen 对象属性属性描述IEFOavail 阅读全文
posted @ 2011-12-22 21:39 Sirrah 阅读(2992) 评论(0) 推荐(0) 编辑
摘要: msgbox运行后都有一个放回值,这个值可以结合if编程。 看实例:Dim SelectValue SelectValue = Msgbox ("信息提示框",vbyesno,"提示框")If SelectValue=6 Then Msgbox "您点击了确认" ElseIf SelectValue=7 Then Msgbox "您点击了取消"End If 阅读全文
posted @ 2011-12-22 21:16 Sirrah 阅读(6352) 评论(0) 推荐(0) 编辑
摘要: 要在cmd中用vbs实现密码输入,可以用密码对象password完成 创建password对象的实例 语法为:set objpwd=createobject("scriptpw.password") 利用密码对象的getpassword方法,获取密码 语法为:str=objpwd.getpassword 只能在cmd中运行 set objpwd=createobject("scriptpw.password")str=objpwd.getpassword()msgbox str 把这个脚本保存为test.vbs 在cmd中运行cscript+test.v 阅读全文
posted @ 2011-12-22 21:13 Sirrah 阅读(2862) 评论(0) 推荐(0) 编辑