Skip to content

Instantly share code, notes, and snippets.

@PardhuMadipalli
Created January 20, 2018 14:38
Show Gist options
  • Save PardhuMadipalli/daeb9507382b0e5790e8e55ef7f0d941 to your computer and use it in GitHub Desktop.
Save PardhuMadipalli/daeb9507382b0e5790e8e55ef7f0d941 to your computer and use it in GitHub Desktop.
Automatic login to IRCTC website - VB script
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