Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How does vbs open ie

2025-01-19 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/03 Report--

This article mainly shows you "vbs how to open ie", the content is easy to understand, clear, hope to help you solve your doubts, the following let the editor lead you to study and learn "vbs how to open ie" this article.

The first method InternetExplorer.Application

StartURL = "www.jb51.net" set IE = CreateObject ("InternetExplorer.Application") IE.Visible = true IE.Navigate StartURL

The second method, WScript.Shell

Dim Wsh Set Wsh=WScript.CreateObject ("WScript.Shell") On error Resume Next objeShell.Run ("http://www.baidu.com")")

The following code is the code that automatically opens Baidu and enters the search code

Dim wsh,ie Set wsh = CreateObject ("wscript.shell") Set ie = WScript.CreateObject ("InternetExplorer.Application") URL= "http://www.baidu.com" code="ie.visible = True ie.navigate URL WScript.Sleep 1000 wsh.AppActivate" Baidu, you will know "'fill in the quotation marks with the top title of the browser wsh.Run" cmd.exe / c echo "& code &" | clip.exe ", vbHide wsh.SendKeys" ^ v "wsh.SendKeys" {ENTER} "

Using vbs to realize automatic login of website

Dim wsh Ie Set wsh = CreateObject ("wscript.shell") Set ie = WScript.CreateObject ("InternetExplorer.Application") URL= "http://www.baidu.com" ie.visible = True ie.navigate URL WScript.Sleep 1000" 5 wsh.AppActivate "'fill in the top title of the browser WScript.Sleep 1000" 1 wsh.SendKeys "account"' in the quotation marks WScript.Sleep 1000 "1 wsh.SendKeys" {TAB} "WScript.Sleep 1000" 1 wsh.SendKeys "secret Fill in the code "'in quotation marks with the password WScript.Sleep 100031 wsh.SendKeys" {ENTER} ". These are all the contents of the article" how to open ie by vbs ". Thank you for reading! I believe we all have a certain understanding, hope to share the content to help you, if you want to learn more knowledge, welcome to follow the industry information channel!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report