Created
January 20, 2018 14:38
-
-
Save PardhuMadipalli/daeb9507382b0e5790e8e55ef7f0d941 to your computer and use it in GitHub Desktop.
Automatic login to IRCTC website - VB script
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set WshShell = WScript.CreateObject("WScript.Shell") | |
call WshShell.Run("https://www.irctc.co.in/eticketing/loginHome.jsf", 1, false) 'This will open your default browser | |
WScript.Sleep 10000 'wait for the webpage to load | |
WshShell.SendKeys "username" 'to enter username | |
WScript.Sleep 1000 | |
WshShell.SendKeys "{TAB}" | |
WScript.Sleep 1000 | |
WshShell.SendKeys "password" 'to enter password | |
WScript.Sleep 1000 | |
WshShell.SendKeys "{TAB}" 'to enter the CAPTCHA box | |
WScript.Quit() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment