title: How to fill web forms automatically in AutoIt script using Firefox instead of IE?
body: <p>I’ve been away from Autoit for a while and I’m looking to rewrite my scripts to use Firefox instead of IE.</p>
  
  <p>I would appreciate someone pointing me to some example scripts which, for example, show how to open Firefox to a predetermined website and submit a username and password.</p>
  
  <p>Thanks!</p>
  
  <p>I have tried this code</p>
  
  <pre><code>$off=Run(@ProgramFilesDir &amp; "\Mozilla Firefox\firefox.exe " &amp; $url, "", @SW_MAXIMIZE)
  
  
  
  _FFLoadWait($off)
  
  ;_FFConnect()
  
  while(_FFLinkClick ("Continue to this website (not recommended).","text"))
        _FFLoadWait($oFF,10000)
  wend
  If _FF_AutoLogin($uName,$pwd, $url, "login was successful", "submit", 0, 1)  Then MsgBox(0,"","Login was successful")
  
  ;window.content.document.value(formUID)=_FFObj($uName, "value")
  ;_FF_AutoLogin($uName,$pwd,$url)
  _FFSetValueById($uName,$formUID)
  _FFSetValueById($pwd,$formPID)
  
  ;$oSubmit = $oFF.document.getElementById($formSubmit)
  _FFClick ($formSubmit,"id")
  </code></pre>
  
  <p>I have installed mozrepl also..</p>