How does vbs open ie
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!