VBS 也挺强大的呢,这篇给大家演示的是调用 ie 浏览器,并用百度查出天气
注:编辑器不支持 vbs 编程,单引号后是注释哦!
' 调用ie,并打开百度Set ie = WScript.CreateObject("InternetExplorer.Application")
With ie.Navigate "http://www.baidu.com/".Visible = True
End With' 等页面载入完整再进行下一步DoWscript.Sleep 2000
Loop Until ie.readyState = 4' 查询天气Set kw = ie.Document.getElementById("kw")
Set su = ie.Document.getElementById("su")
kw.value = "天气"
su.click
效果图如下:
喜欢的点个赞?吧!