Jump to content

_IEFormGetObjByName only works when running as administrator


Recommended Posts

In my script, I called something like this:

$o_loginForm = _IEFormGetObjByName($o_IE, "f1")

if Not IsObj($o_loginForm) Then
   MsgBox(0, "Error", "Failed to get login form")
   Exit
EndIf
 

From testing, it seems that if I login as a normal user (domain user), then the o_loginForm will not be valid. However, if I run this code from a command prompt that is "run as administrator", then it worked properly.

Is there a specific IE settings to configure this?

Link to comment
Share on other sites

welcome to the autoit forums ykphuah, using code tags - [ autoit ] [ / autoit ] (<--- just take out the spaces and put your code inside) will wrap your code in color syntax highlighting. :)

I see that that is not your full script. Would you mind posting it?

Edited by MikahS

Snips & Scripts


My Snips: graphCPUTemp ~ getENVvars
My Scripts: Short-Order Encrypter - message and file encryption V1.6.1 ~ AuPad - Notepad written entirely in AutoIt V1.9.4

Feel free to use any of my code for your own use.                                                                                                                                                           Forum FAQ

 

Link to comment
Share on other sites

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
 Share

  • Recently Browsing   0 members

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