I have a script that seems to launch perfectly fine with IECreate, however, I want to launch the Browser and a specific URL with the RunAs command. I fairly new to AutoIT and wanted to know if someone can point me in the right direction.
Local $surl = "http://somewebsite.com/DODA/admin/job.aspx"
Local $oIE = _IECreate($sURL)
The above launches the website correctly with the correct URL, however, I have tried the below and this fails to load and browser?
#include <AutoItConstants.au3>
;========================
$oSleep = "200"
Local $surl = "http://somewebsite.com/DODA/admin/job.aspx"
Local $oIE = RunAs($args("username"), $args("domain"), $args("logonpassword"), "", "C:\Program Files (x86)\Internet Explorer\iexplore.exe http://somewebsite.com/DODA/admin/job.aspx")
_IELoadWait($oIE)
I get the following error back?
--> IE.au3 T3.0-2 Error from function _IELoadWait, $_IESTATUS_InvalidDataType
--> IE.au3 T3.0-2 Error from function _IEGetObjById, $_IESTATUS_InvalidDataType
--> IE.au3 T3.0-2 Error from function _IEGetObjById, $_IESTATUS_InvalidDataType