Jump to content

HariKara

Members
  • Posts

    10
  • Joined

  • Last visited

Recent Profile Visitors

The recent visitors block is disabled and is not being shown to other users.

HariKara's Achievements

Seeker

Seeker (1/7)

0

Reputation

  1. 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
  2. Hi AutoIters! Im trying to launch a .exe file that is nested within the program files (x86) folder structure. i have already used the standard RunAs Syntax and found that it fails to launch the application. I have switched to Run and that seems to work. My issue is I have to use RunAs as the applicaton would need to run under a completely different account. The Current logged in user is a Local User on the machine, however, the application must be run as a domain user. The Machine is domain connected. have tried the following: RunAs("username","logonpassword", $RUN_LOGON_PROFILE, "D:\Program Files (x86)\Vendor\Application Name\Exe Location\Executable.exe") The above fails to launch, there are no errors or syntax issues, it just does nothing when the variables are replaced for the correct values. I did the same using the Run command Run("D:\Program Files (x86)\Vendor\Application Name\Exe Location\Executable.exe") That seems to work fine, but runs in local user context. Any thoughts? Could it be a local Machine rights issue? Or have i missed something glaring in my script
  3. How would you edit only the above Tag in your script. Say you wanted that to read as <WMENC_LONG Name="ENCODER">version5</WMENC_LONG>
  4. @EarthshineI have the latest version of AutoIt downloaded on Friday Last week from AutoIT website. and the latest SCIEditor. THe XMLDOMWrapper is the one from the below link
  5. @Earthshine Thanks... I will download from this site, would this have impact on the code that I have written and resolve the issue im having? Thanks Hari
  6. @Earthshine Copied and Pasted off the internet... See attached the named file. _XMLDomWrapper.au3
  7. @Earthshine Im not sure how to check? I've not called any specific UDF in my script and I'm a Newbie at this... How could I check quickly? Thanks Hari
  8. Hi All, Any AutoIT coders out there able to assist me? I have managed to work out how to update a "TAG", however, I now need to update a Key within the tag. XML code below: XML CODE: <?xml version="1.0" encoding="utf-8"?> <configuration> <configSections> <sectionGroup name="userSettings" type="System.Configuration.UserSettingsGroup"> <section name="CP.Infrastructure.Properties.Settings" type="System.Configuration.ClientSettingsSection" /> </sectionGroup> </configSections> <userSettings> <CP.Infrastructure.Properties.Settings> <setting name="Dictionary" serializeAs="Xml"> <value> <dictionary> <items> <item key="LoginType">Username</item> <item key="LoginUsername">admin</item> <item key="LastConnectedServers">127.0.0.1</item> <item key="Fingerprint Server: 127.0.0.1">TEXT SPACE EDIT BEND IDEN WREN</item> <item key="GettingStarted">False</item> </items> </dictionary></value> </setting> </CP.Infrastructure.Properties.Settings> </userSettings> </configuration> I want to set the XML key highlighted in RED above from <item key="LoginUsername">admin</item> To <item key="LoginUsername"></item> I've tried many scripts but I either get a complete wipeout or nothing changes. Ive attached my base script that I'm trying. File2.au3
  9. Thanks Subz!!
  10. Hi AutoIT'ers! Im fairly new to the language and can see great power in the code. Im trying to Update an XML file using AutoIT, and struggling to get the SRER to function correctly. I've looked through several examples and the ones ive tried, either just add another Line, instead of replacing the current TAG of the same name, or it wipes the full XML and creates a New TAG. My XML is a very simple flat file: (See below) <?xml version="1.0" encoding="utf-8"?> <RemoteLaunchParemeters xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema"> <Username>aa</Username> <ServerIP>10.0.0.1</ServerIP> <DomainName>LondonDomain</DomainName> <ReadOnly>False</ReadOnly> <CloudDemoMode>False</CloudDemoMode> <DomainName>LondonDomain</DomainName> </RemoteLaunchParemeters> I want to replace the "aa" in the Username TAG to be blank, so from <Username>aa</Username> to <Username></Username> I have tried the below code but have had no joy. Any help would be greatly appreciated. The XML file name is login.params if that helps. Thanks Hari FileXMLreplace.au3
×
×
  • Create New...