title: Login to a website using script
body: <p>I am actually writing a windows script which on clicking will open my default web browser , open a page , enter my login details and then submit the form. </p>
  
  <p>All I could do so far was open the browser with this:</p>
  
  <pre><code>explorer http:\\outlook.com\website.com
  </code></pre>
  
  <p>Since I could not find any resource which tells how to do this, I looked at python scripting and found two libs ie. <code>urllib</code> and <code>webbrowser</code>. I am know that <code>urllib</code> is used for scraping websites. But I am not sure how to simulate the same in a web browser. The <code>webbrowser</code> library has only commands to open the page in a new tab etc.</p>
  
  <p>Please tell me how I can achieve this task either using python or windows script.</p>
  
  <p><strong>EDIT:</strong> I have my username and password saved in my browser so that it auto fills. I just want to simulate the 'ENTER' key press.</p>