Monday, February 8, 2016

How to Auto login any ISP site at Windows Startup


How to Auto login any ISP site at Windows Startup

You can use this trick on Windows to auto-login your ISP at Windows startup.

It's really simple if u can understand html tags. I've always wanted to make this work so, I searched online buy couldn't find a definite method to achieve this. So, I learned html myself  and made this possible. In case you don't know what html is don't panic.

Steps you need to follow:

  1. Save your ISP html page (just right click your ISP page and click save as.
  2. Edit your html page (removing all CSS and other elements so that all you see is user name, password and click) Though this is optional it'll make you understand what you are doing
  3. Adding click script method so that click button is executed after page has loaded(at this step your ISP will be auto logged-in if you open the html.
  4. Copying the html to the windows startup folder
I'm going to go step by step through the process. So there's no need to panic.
Go to your ISP login page.
Press Right Click > save as html
Select HTML only and save the file in your desktop













You will see something that looks like this on your desktop

Now since you need to edit this file you need a text editor. I recommend Notepad++  which you can download by clicking the link.

After you install , Right click your ISP html you will see the option to edit using notepad++
























Now you will see the html file.

If you know html, you can go ahead and remove all CSS elements. (optional)

If you are not aware of the html don't bother to remove anything.

You need to find the html tag that is responsible for textboxes of username and password.
If you right click on the element in chrome and select inspect you'll find input tag.
Thats exactly what you'll need to find in the editor.

You will find input tags i.e, <input>    </input>

Each input is responsible for username, password and click button.

Now you need to give values to the input tags. This will act as your id and password.

Mostly it'll look like this:
In the value tag type your username

<input type="text" id="username" name="username" value="bahu"/>

Similarly give the value of your password input tag i.e, your password

<input type="text" id="password" name="password" value="1234"/>

Here my username is : bahu
and password is : 1234

You have to enter your own id and password not mine :p

Now it's almost 90% complete... :) :)

If you cannot find any tags, go to your ISP site on chrome. Right click on the element you want to find out in chrome and select inspect. Now in Notepad you can search by pressing ctrl+f.

Now copy the below code and paste it in head tag. The head tag will be there near top of the html file.
paste the code immediately after <head>
        

     <script type="text/javascript">
        window.onload = function(){
           document.forms[0].submit.click();
}</script>

Now save the file and exit.
At this stage if you double click html it'll open in chrome and auto login.

The above <script> code works for my ISP site. If it doesn't work for you, you'll need to change the submit.click();

here submit is the name of my click button. You can find name of your click button by inspect in chrome.
For example in code it will look like name= " "

If its login for example, you need to change it to login.click();

Simple.. It should work for most ISPs

Now copy the html file and paste it in Startup folder.
This will make your html to open automatically after windows is logged on.

Good luck :) :)

No comments:

Post a Comment