title: Renaming filename in save as dialog box using autoit with selenium
body: <p>I am using AutoIt tool with selenium. What I am doing is when I get a 'Save as' dialog box in my application, I get some default value with which the file is stored in my system. I am trying to rename that to 'New' as mentioned in my code below. But the issue that I am getting here is, the file name gets changed to 'New' successfully in the dialog box but when I click on 'Save', it gets stored with the default filename.</p>
  
  <pre><code>$windowHandle = WinGetHandle("Enter name of file to save to…")
  WinActivate($windowHandle)
  ControlSetText("Enter name of file to save to…", "", "Edit1", "New")
  ControlClick("Enter name of file to save to…", "", "Button1")
  </code></pre>