title: Downloading a web page with AutoIt is not working correctly
body: <p>I'm trying an AutoIt script which uses the "Save As" download dialog from a web browser and gives a new name to the page downloaded. The page downloads correctly, but the problem is that it can't rename it, so the default name is used. I used the script whit IE, Chrome and Firefox but none of them worked.</p>
  
  <p>Script:</p>
  
  <pre><code>WinWaitActive("Save As","","20")
  If WinExists("Save As") Then
      ControlSetText("Save As","","Edit1",$CmdLine[1])
      ControlClick("Save As","","&amp;Guardar")
  EndIf
  </code></pre>
  
  <p>Example
  <a href="https://i.stack.imgur.com/giPJ8.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/giPJ8.png" alt="Example"></a>
  When I run it with "script.exe newname", the page should be downloaded as "newname", not "AutoIt simple example bla bla...." (default name)
  <br>
  <br>
  <strong>EDIT: Same code works with notepad save dialog, but It doesn't work on any browser.</strong> <br>
  <strong>Also, I'm not using InetGet because that only downloads plain HTML. I need the complete page with css and images.</strong> <br>
  <strong>EDIT2: I also tried this from java using AutoItX4java but that neither worked.</strong></p>