title: Automate mouse click in windows with script/batch file
body: <p>Firstly I'd like to point out that this is a rather strange question and also that I don't even know if stackoverflow is right for this...</p>
  
  <p>Anyways, is there a way to write a batch file or some other script that will automate a mouse click wherever the mouse pointer happens to be at the time the script runs? My main goal is this:</p>
  
  <ol>
  <li>Run script</li>
  <li>Check if the time is between 00:00am and 05:00am</li>
  <li>If it's not then continue running checking every 15mins.</li>
  <li>If it IS, then check if there is internet connection on the current machine</li>
  <li>If there is internet connection then continue running script checking every 15mins.</li>
  <li>If there is NOT an internet connection then automate a left mouse click wherever the mouse pointer happens to be pointing at the time.</li>
  <li>Continue running doing the same checks as above every 15mins</li>
  </ol>
  
  <p>Again I don't know even if this is possible, just thought I'd try my luck. 
  Thanks in advance!</p>