title: Passing command-line arguments/parameters to AutoIt executables
body: <p>My AutoIt script:</p>
  
  <pre><code>WinWaitActive("User Authentication","","10")
  
  If WinExists("User Authentication") Then
  
     ; Enter a username.
     Send("prabu{TAB}")
     Send("{TAB}")
  
     ;Enter a Password.
     Send("Password")
     Send("{TAB}")
     Send("{SPACE}")
  
     ;Press Authenticate button.
     Send("{TAB} {ENTER}")
  
  EndIf
  </code></pre>
  
  <ul>
  <li>It waits for an authentication popup window to gain focus,</li>
  <li>enters a username and password,</li>
  <li>then presses the "Authenticate" button.</li>
  </ul>
  
  <p>I "compiled" it to an .exe file and execute it from Selenium using:</p>
  
  <pre><code>Runtime.getRuntime().exec("C:\\Users\\Prabu\\Documents\\ds.exe");
  </code></pre>
  
  <p>But I want it to enter a different username and password every time. I intend to provide these to the script using command-line arguments (parameters if you will).</p>
  
  <p>Is it possible to pass arguments/parameters to AutoIt scripts? If so, how should this be done and how do I access arguments/parameters provided to my script?</p>