You are on page 1of 5

1 of 5

2 of 5

get the IM Editor. Similarly right click on "form- ill.iim" macro ile and choose Edit Macro. You will see both the iles opened in the editor. In irctc-book.iim macro ile add below command at end of the ile. PAUSE Now copy all the lines below URL GOTO = command from form- ill ile and paste it at END of edited irctc-book macro ile.

Thats 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 ile from the iMacro menu and click Play.

Now you dont have to enter your username, password, journey details. All the details will get illed 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 illed up from macro ile. Rest of process will have to be taken care by yourself Your inal irctc-book macro ile 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=

3 of 5

Please drop your comments if you ind 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)

Labels: Software

13 comments:
hitesh said... Its Quite interesting to know May 6, 2011 9:31 PM

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 May 18, 2011 6:37 AM

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... May 18, 2011 11:44 AM

dileep423 said... CAN U HELP ME REGARDING TRAIN SELCECTION AND CLICK ON BOOK HOW TO RECORD IT IN DETAIL July 23, 2011 8:45 AM

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 ... July 25, 2011 11:16 AM

dileep423 said... thats ok vinoth but in new site it is under maintenance.plz tell me how to record select train and book July 26, 2011 12:47 AM

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

4 of 5

ATTR=ID:submitButton July 26, 2011 7:29 AM

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 July 27, 2011 5:43 AM

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. July 27, 2011 6:44 AM

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 July 27, 2011 7:23 AM

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, irefox.. July 27, 2011 8:35 AM

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 July 28, 2011 7:54 PM

TechieVinoth said... Please read my previous post. Macro for chrome is not yet fully supported. July 28, 2011 8:00 PM Post a Comment

Newer Post
Subscribe to: Post Comments (Atom)

Older Post

5 of 5

You might also like