User Guides A Guide to Night Downloading for MTNL 749NU Plan

Hi,

After long and tiring googling on this subject i finally found out a tentative solution in the form of Imacro's.

Okay first of all this guide is quite comprehensive and applies to all MTNL/BSNL plans which involve unlimited night browsing involving session disconnection before and after downloading within free time frame i.e 12:00AM(Midnight) to 8:00AM.

Also this guide will be very helpful if you have more than 1 PC in ur home as i do or if you run virtual server and and port forwarding.

Assumption/Requirements
1.You have MTNL/BSNL Night Unlimited Plan
2.You have put your modem on bridged mode. If not then now would be a good time to do it. Search it up on TE on how to do it.
3.You have a Router between your PC and modem. If you don't have one then all you need to do is put your modem on bridged mode, make a dialer with your username and pass on the PC and schedule a session disconnection after 12 and before 8 and you're good to go.
4.You have implemented PPPoE Connection method in your router
5.Firefox 2.x (Get it Here)
6.iMacros Addon for Firefox(Get it Here)
If you read carefully then this should be a piece of cake.

Short Sumary: We are going to put your router's login and password into the IMacros Plugin and tell it to click on the disconnect button. We will save this procedure in a bookmark. Now we will schedule a task through windows task scheduler to open that particular bookmark at a particular time which will cause to disconnect the current internet session.

Steps I - Completing Basic Requirements
Skip this step if you have router and internet configured.

A). Put your modem on bridged mode, Go to your router's Wan settings, select Dynamic PPPoE, Feed in your Login details and hit apply.

I have shown how to do this on Dlink DI524 Wifi router


On Dlink 502T




B).Now just connect a Cable from ur PC to the Router, and put your network adapter(Wifi or Lan Card) to automatically assign ip address.


Steps II - Configuring iMacro's

A). Download and install iMacros plugin from Here.

B). Open Notepad and type in

Code:
VERSION BUILD=6050529 RECORDER=FX
TAB T=1
ONLOGIN USER=[B][COLOR="Red"]aaa[/COLOR][/B] PASSWORD=[COLOR="Red"]ppp[/COLOR]
URL GOTO=[COLOR="Red"][B][url]http://192.168.101.1/status.htm[/url][/B][/COLOR]
ONDIALOG POS=[COLOR="Red"][B]1[/B][/COLOR] BUTTON=[COLOR="Red"][B]OK[/B][/COLOR] CONTENT=
TAG POS=1 TYPE=INPUT:BUTTON FORM=NAME:NoFormName ATTR=VALUE:[COLOR="Red"][B]Disconnect[/B][/COLOR]

C). Now replace aaa and ppp with ur Router's Login and password.

D). Replace http://192.168.101.1/status.htm with the url of status page or the page where there is an option to disconnect the current session as shown below.



E). Now you yourself click on the disconnect button on the status page as shown above and see if it gives any prompt before disconnection. If it doesn't give any prompt and disconnects straight away then delete the 2nd last line starting with ONDIALOG.

In case it does give a prompt then you need to notice the position and name of the button which will disconnect the session. If on the prompt there are 2 buttons->

i.Cancel
ii.Proceed

Then the 2nd last line will look like this
ONDIALOG POS=2 BUTTON=Proceed CONTENT=

F). In the last line replace Disconnect with the name of the button on the status page which will disconnect the current session.

G). Now save this file as "mtnl.iim" on the desktop. Open Firefox, Click on the iMacro's button next to the address bar. Go to Rec Tab, Click on Load, select your file and click Open.



Now the mtnl.iim file would be visible in the Favorites list in the iMacro's Tab opened on the left. Click on it to test if it disconnects the session.

If it doesn't something isn't done right. Re check from step 1 or ask for assistance.

H). RightClick mtnl.iim and select Add to Bookmark, Selct Local and hit OK as shown below.



Now a Bookmark named mtnl.iim will be added in firefox.

Steps III - Automated Execution and Scheduling

A). Open Notepad and write in the following:

Code:
taskkill /im [B][COLOR="Red"]flashget.exe[/COLOR][/B] /f
start /B "C:\Program Files\Mozilla Firefox\firefox.exe"
ping 59.179.243.70
start /B "C:\Program Files\Mozilla Firefox\firefox.exe" [url]http://run.imacros.net/?m=mtnl.iim[/url]
[B][COLOR="Red"]shutdown -s[/COLOR][/B]

The taskkill command is necessary since the application through which you were downloading will start to download again once the internet is connected again. If you have scheduled your application to stop downloading before 8AM then you can skip this line. I recommend keeping it just to be sure. Also replace flashget.exe with the filename of your application, for example utorrent.exe.

The shutdown command is again optional, if you want to shutdown your computer after downloading keep this command line otherwise remove it.

Now save this file as "firefox.bat" in C:\.
Once saved, run it to test if it automatically opens firefox, goes to your router's status page and disconnects the session.

B). Now the task at hand is to schedule this file firefox.bat to run anytime before 8 AM through the Windows Task Scheduler. This im leaving to you to do since its quite easy.
Schedule it to run everyday at 7:50AM or so.

I hope this helps you bring down your bill :) :)
Best of luck :hap2:

L8r
 
Though i am not a user of MTNL broadband connections but this is one really good step-by-step guide to downloading in the night. Just put on the download and relax.

repped.
 
means u scheduler from 2 am to 8 am
for saving bill even there is software name
scheduler from 2 am to 8 am
;)
 
I think there are easier ways to schedule your downloads. There is a guide somewhere on TE that makes this all too simple. Besides you can use Windows scheduler to start/stop apps. I got Azureus, flashget to start at 12:03 assisted by their inbuilt schedulers. and yes scheduled connections and disconnectionsb4 midnight and b4 8am does it for me.

However, I will keep this guide, just in case. :D
 
I will explain once again, it will apply on all router's which are capable of doing PPPoE and have an option for you to manually disconnect the current internet session by pressing a button.

This will also work on Modem cum Router(ADSL+Router) devices such as the DLink 502T.

I think all router's these days can do a PPPoE so it should not be a problem..
 
Thanx for the detailed guide..:D Repped:)

I use the bridge connection on my DLink502T.For 12am iam usually awake at that tme so do it manually..:p but for 8am thing I simply use shutdown timer(set @7:55am) which shutsdown my computer and hence my connection..No probs faced with that method yet..:D
 
knoughtyd said:
Thanx for the detailed guide..:D Repped:)

I use the bridge connection on my DLink502T.For 12am iam usually awake at that tme so do it manually..:p but for 8am thing I simply use shutdown timer(set @7:55am) which shutsdown my computer and hence my connection..No probs faced with that method yet..:D

The method ur using is perfect, the problem comes in for peeps who have multiple computer's and do port forwarding, thus they need to do the dialing at the router..
 
hey..my step 2 ain't working. i.e when i execute the .bat file. Firefox starts but then nothing happens. i.e the macro doesn't execute.

Any idea what could be wrong?
 
start /B "C:\Program Files\Mozilla Firefox\firefox.exe"
ping 59.179.243.70
start /B "C:\Program Files\Mozilla Firefox\firefox.exe" Please install the free iMacros Firefox extension first to run shared browser scripts

My router is MT 882.
But i tried executing the macro from the bookmark itself and the modem reboots.. so i guess there is no issue there.
i tried bookmarking it at the local place as well as the "Run Bookmark Everywhere"

EDIT :-
start /B "C:\Program Files\Mozilla Firefox\firefox.exe" h**p://run.imacros.net/?m=mtnl.iim

this is the last line..wonder why i am getting that last line like that !!

any idea?
 
hey mate,

finally got it to work..

the thing is i got to keep firefox already running before i execute the script..(as was mentioned in the link you gave)

thanks for the help mate..

really appreciate it !
 
Back
Top