Speed Up IRCTC Ticket Booking


Most of us would have faced horrible time while booking ticket from irctc website. Famous “Service Unavailable” page which used to come too often and you will again start entering your username, password and journey details from scratch. You can’t still be sure that you won't see “Service Unavailable” page again. This post is for those people who got to that situation often. Those people who never faced such situation it will surely be a useful read.

One Time setup to speed up your rail ticket booking :

Follow below steps to complete IE setting.

We are going to use iOpus web automation software for speeding things up.

Install iMacros7 software(a product of iOpus) for IE in your machine. You can get the 30-day trial version from below website.

http://www.iopus.com/download/imacros/

Clear all saved passwords stored from your IE browser (saving passwords can create problems at times using imacros). Atleast don't save irctc password.

After installing imacros, open IE browser. You will see a new IMACROS (IM) icon in IE toolbar. Click this icon, to open IM menu within IE Window

Go to : www.irctc.co.in website in IE browser. Usually IM menu will be displayed in left hand side of your IE window.

Choose “RECORD” tab in IM menu and click “RECORD” button.

Enter your Username , Password in IRCTC website and press ENTER Key.

After logging-in, enter Journey Details From, To, Date, Ticket Type, Quota and click “Find Trains”

click “STOP” button in IMacro menu.

Now right click on “Current.iim” and Rename the file to “irctc-book”.

Half of your setup is now done. J

Now choose your train and click Book button from Availability menu on your journey date. You will now get the Ticket Reservation page.

Now again click “RECORD” button from the IMacro menu.

Enter all the Passenger details in the Reservation Page and click “STOP” button from IMacro menu.

Right click on “Current.iim” and Rename the file to “form-fill”.

You are only few steps away from completing the setup.

Now right click on “irctc-book.iim” macro file and choose “Edit Macro”. You will get the IM Editor. Similarly right click on "form-fill.iim" macro file and choose “Edit Macro”. You will see both the files opened in the editor.

In “irctc-book.iim” macro file add below command at end of the file.

PAUSE

Now copy all the lines below “URL GOTO =” command from “form-fill” file and paste it at END of edited irctc-book macro file.

That’s it. J You are done with the setup.

You can now close the browser window.

When you decide to book a ticket at later point of time:

Open IE browser.

Click “irctc-book.iim” file from the iMacro menu and click Play.

Now you don’t have to enter your username, password, journey details. All the details will get filled up automatically.

Choose your Train and click BOOK button from IRCTC page. You will get Ticket Reservation page.

Now click “CONTINUE” button in IM Menu . All the passenger details will get filled up from macro file.

Rest of process will have to be taken care by yourself…

Your final “irctc-book” macro file content would look similar to:

VERSION BUILD=7311339

TAB T=1

TAB CLOSEALLOTHERS

'Fill in login information

URL GOTO=https://www.irctc.co.in/

TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:LoginForm ATTR=NAME:userName CONTENT=

TAG POS=1 TYPE=INPUT:PASSWORD FORM=NAME:LoginForm ATTR=NAME:password CONTENT=

TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:LoginForm ATTR=ID:button&&VALUE:Login

TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:BookTicketForm ATTR=NAME:stationFrom CONTENT=

TAG POS=1 TYPE=IMG FORM=NAME:BookTicketForm ATTR=ID:cal

TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:BookTicketForm ATTR=NAME:stationTo CONTENT=

TAG POS=14 TYPE=A FORM=NAME:BookTicketForm ATTR=CLASS:cal_dates

TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:BookTicketForm ATTR=VALUE:Find<SP>Trains

PAUSE

'Filling passenger information

TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:BookTicketForm ATTR=NAME:passengers[0].passengerName CONTENT=

TAG POS=1 TYPE=INPUT:TEXT FORM=NAME:BookTicketForm ATTR=NAME:passengers[0].passengerAge CONTENT=

TAG POS=1 TYPE=SELECT FORM=NAME:BookTicketForm ATTR=NAME:passengers[0].passengerSex CONTENT

TAG POS=1 TYPE=SELECT FORM=NAME:BookTicketForm ATTR=NAME:passengers[0].berthPreffer CONTENT=

Please drop your comments if you find these details useful. We just automated the typing during booking in irctc website. Quite useful while booking tatkal tickets which opens at 8 AM everyday.

HAVE a HAPPY and SAFE JOURNEY …

(NOTE: You can even automate the entire booking process through macro file. Will discuss it based on your feedback)

34 comments:

hitesh said...

Its Quite interesting to know

Anonymous said...

Ha Ha :D
Another frustrated IRCTC user..
Good one..
Weren't you able to record the Train Selection & click on Book..Usually there's a long wait here...

Guess this can be done with any Record & Playback tool.

Nice Post

TechieVinoth said...

Train selection and click on book can be recorded too by changing the click mode to "Expert use complete HTML tag" while recording...

dileep423 said...

CAN U HELP ME REGARDING TRAIN SELCECTION AND CLICK ON BOOK HOW TO RECORD IT IN DETAIL

TechieVinoth said...

Hi Dileeep,

Thanks for showing interest.

If you are not aware Indian railway's launched new portal to book e-ticket.Service charge for Sleeper:Rs.5, A/C Ticket:Rs.10 50% lower than irctc website :) http://t.co/9cB9dNH So, i guess people will be migrating to new site I will explain in detail based on new portal ...

dileep423 said...

thats ok vinoth but in new site it is under maintenance.plz tell me how to record select train and book

TechieVinoth said...

Below command does select the SL coach and then clicks book button.

TAG POS=1 TYPE=INPUT:RADIO FORM=NAME:BookTicketForm ATTR=NAME:classcode&&VALUE:SL
'Click Book button
SET !TIMEOUT_STEP 120
TAG POS=1 TYPE=INPUT:SUBMIT FORM=NAME:BookTicketForm ATTR=ID:submitButton

dileep423 said...

THANKS FOR U R SUPPORT

BUT IS IT POSSIBLE TO SELECT BOOK OPTION ALSO AUTOMATICALLY?

IT IS SELECTING SL BUT IT IS STOPPING AT BOOK OPTION.I NEED IT ALSO TOBE SELECTED AUTOMATICALLY

THANK U ONCE AGAIN

TechieVinoth said...

Command that i mentioned should click 'book' option as well automatically. I guess time limit has been exceeded while loading availability list.

Try increasing the timeout_step sec to higher number.

dileep423 said...

no i have tried by increasing time.

but book option is not getting selected.

availability is coming within 5 or 10 sec
plz help me

TechieVinoth said...

OK. then only option is to try recording ur book button click by changing recording mode to "complete HTM tag" then use newly generated command instead of last line mentioned in my previous command. If it doesn't work try changing browsers.. supported browsers are IE, firefox..

dileep423 said...

Vinoth is macros possible for google chrome?
the one which we have used for ie can we use it for chrome?

i am getting errors if we use macros of ie to chrome

can u help me please

TechieVinoth said...

Please read my previous post.

Macro for chrome is not yet fully supported.

dileep423 said...

HI VINOTH

IS IT POSSIBLE TO FILL THE VERIFICATION CODE AUTOMATICALLY OR WE HAVE TO TYPE IT?

TechieVinoth said...

Verification code is used to avoid usage of web automation. Yes you have to type it manually.

khushwant vyas said...

hi,
i dont think its useful.
becoz the main prob is server getting hang not time consumption in form filling.
so make some software which can increase the speed.

TechieVinoth said...

Hi Khushwant,

Normally for tatkal 100's of tickets will get booked within few sec's. So, instead of spending time in feeding ur info use macro. Atleast you have better chance than ppl who feed manually. You should try using it to understand the benefit.

dileep423 said...

hi vinoth

irtctc new portal is showing under maintenance every day.when it will work

dileep423 said...

hi vinoth

i want imacros full version.Presently it is 30 day trial version?

TechieVinoth said...

Hi Dileep,

It's not irctc new portal.. its government own portal to book e-tickets. Have to wait and see ...

There are imacros plugins for ie and firefox .. do google search to find and install it. It is free version.

loverboy said...

every thing is crap ...

nothing will work because you wont get loging..

and when you get loging all ticket were sold to agent by ticket counter babu...

irctc sould have to restart it quick book service for normal user from 8 AM

Anonymous said...

Hey Vinoth,

Can you please help me automate selecting the date in the "Find Trains" box ?

Thanks !

asif said...

Choose “RECORD” tab in IM menu and click “RECORD” button. not opening in internet explorer asif tak

Samsul said...

To record this macro, one has to do it the same day of booking; so that all details like dates, quota etc. are captured correctly. But, if I spend time recording this, when will I get the time to book the actual ticket?

MLLab said...

Yes, its better to record your data on same day. Because we never know when irctc layout changes but usually not. Then you dont have to record everything at the same time of booking.. just spend around 10min before you start booking you should be fine.

Anonymous said...

can u plz post a video of this with a link or screen shot.. tht will make it lot easier..

PUNEET PATHANKOT said...

its difiicult to use this, roboform is better option

Anonymous said...

service unavailable is big problem

Unknown said...

Hey hye
Thks for ur update
It seams it cud b wrkg nice n fine
but I hve few querry
Can this wrk in i macros 8 kya?????
Also if it cud wrk then my final irctc-book.iim file looks little diff than yours
Also at times my window gets closed or at times it asks me to enter password or at times it works only upto user id n psswrd but does nt go further to reservation page

Can you please help me where cud i b going wrong asap

Thanking you

Unknown said...

Is this work with Mozills Forefor & Google Chrome ????? please inform...

Unknown said...

Here's how you can automate upto 95% of the entire train ticket booking process. Here's how you can get your FREE account: http://irctc.rajeshsoni.net

Thanks.

Rajesh

Unknown said...

hey Vinoth...
yet the place name is not automatically filled while playing the recorded one..it sticks after typing the station code..and after the time elapses..it stops playing..pls help me

speedup said...

kisi travel agent ko tatkal sofware chahiye to pls contact - speedup223@gmail.com

pnr status said...

This post can very help for booking ircts person