Jump to content

Recommended Posts

Posted

Hi guys,

I made an automating script for my company that will automatically open an IE browser and enter our company site, then put an employee's credentials automatically so they can login and do automated actions from there.

So the thing is that it's working perfectly on my station on my specific company login. But when I try to make my co-workers use the tool it will show an error:

"The requested action with this object has failed"

So one resolution I thought was to notify the IT guy. I run my tool "As Admin" and told the IT guy to put his credentials for testing. To my surprise, the tool worked like a charm after running as admin.

 

Why is this happening? I did not put any #RequireAdmin on the script. I just put #NoTrayIcon.
The tools runs when my co-workers use it but it crashes when trying to open the browser and putting the credentials. I think this is some security problems I need to deal with.

Already notified my boss about it but will take time for a reply since it's Sunday. I need help guys. Please. Im gonna cry here. :'(

Posted

Did you try to run this script in SciTE (not compiled) on co-workers station ?

Did you find out which function is fireing this error ?

Does your script take care of checking @error ?

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted
  On 5/12/2018 at 7:02 AM, mLipok said:

Did you try to run this script in SciTE (not compiled) on co-workers station ?

Did you find out which function is fireing this error ?

Does your script take care of checking @error ?

Expand  

Thank you for the reply!

Unfortunately, I am the only developer in our office so only my station has Autoit. I had to make the executable everytime I need to test it. The error usually runs from _IECreate() before the automation starts. The GUis are working fine until the IECreate is triggered.

The IE window is originally hidden but will show up with an error messagebox on top saying that "The requested action with this object has failed". Then the GUi crashes.

I strongly believe that there are some security involvement here. Do you have any ideas?

Posted
  On 5/12/2018 at 7:07 AM, Magikarp7 said:

Unfortunately, I am the only developer in our office so only my station has Autoit

Expand  

try this:

 

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Posted

Specially for you @Magikarp7 i just post an example how to make AutoIt+ScITE portable ,   just here:

take a look at this and answer in this thread: AutoIt3 Portable

Signature beginning:
Please remember: "AutoIt"..... *  Wondering who uses AutoIt and what it can be used for ? * Forum Rules *
ADO.au3 UDF * POP3.au3 UDF * XML.au3 UDF * IE on Windows 11 * How to ask ChatGPT for AutoIt Codefor other useful stuff click the following button:

  Reveal hidden contents

Signature last update: 2023-04-24

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...