How to Auto Login to website (Gmail, Yahoo) using vbs (VB Script)
There are a number of ways to login automatically to a website. Here I am writing this post to login into Gmail and Yahoo account.
How will you auto login into your Gmail & Yahoo account? It’s not as hard as it sounds but you will have to change some details like username & password in below mentioned code.
Just follow below steps to auto login to Gmail & Yahoo.
Step-1: Open a notepad and paste below mentioned code in it and save it gmail.vbs and yahoo.vbs.
You are free to choose any other name which you like most but it is familiar and you will not get confused.
Step-2: Copy below mentioned script in notepad to auto login into G-mail account.
On Error Resume Next Const PAGE_LOADED = 4 Set objIE = CreateObject("InternetExplorer.Application") Call objIE.Navigate("http://www.gmail.com") objIE.Visible = True Do Until objIE.ReadyState = PAGE_LOADED : Call WScript.Sleep(100) : Loop objIE.Document.all.Email.Value = "your_username" objIE.Document.all.Passwd.Value = "Your_Password" If Err.Number <> 0 Then msgbox "Error: " & err.Description End If Call objIE.Document.all.gaia_loginform.submit Set objIE = Nothing
Step-3: Copy below mentioned script in notepad to auto login into Yahoo account.
On Error Resume Next Const PAGE_LOADED = 4 Set objIE = CreateObject("InternetExplorer.Application") Call objIE.Navigate("http://www.yahoomail.com") objIE.Visible = True Do Until objIE.ReadyState = PAGE_LOADED : Call WScript.Sleep(100) : Loop objIE.Document.all.username.Value = " your_username " objIE.Document.all.Passwd.Value = " Your_Password " If Err.Number <> 0 Then msgbox "Error: " & err.Description End If Call objIE.Document.all.login_form.submit Set objIE = Nothing
You have to just change your username and password.
After saving it as .vbs, connect to the internet and double click on gmail.vbs or yahoo.vbs file.
It will automatically login into your Gmail and Yahoo account.
Don’t forget to write comment in below comment box, if you like it.
I use SEMRush for Keyword Research & Boost Organic Traffic. Do You?
Highly recommended SEM & SEO Tool for overview of Traffic, Keywords, Backlinks and more. You can search your competitors URL to analyze keywords & crush your competition.
Get Free Blogging Tips & Technology updates in your Email !!!
Latest posts by Anil Kumar (see all)
- Top 3 Custom Sidebar WordPress Plugins for Post & Pages - October 17, 2015
- Bluehost Coupon Codes Up To 75% OFF – August 2015 - August 25, 2015
- Make Money Online: $50-$100 Daily with Affiliate Marketing - August 10, 2015