Jump to content
Sign in to follow this  

Problem when doing autologin in IE 10

Recommended Posts

hye guys ..im still new in autoit..

i use my autoit code to login in ie8 it work well..suddenly when im upgrading my ie to 10...it got problem when key in Username and password text field..i'll aready test with lots of _IEAttach , _IEFrameGetCollection,_IEFormGetCollection

here is my code seem no error msg come out but the username and password box will empty..can anyone help me...sorry for my english..
its IE10 setting are different from IE8..

#include <ie.au3>
#include <Debug.au3>

$cCmp1 = $CmdLine[1]
$cCmp2 = $CmdLine[2]
$cCmp3 = $CmdLine[3]

$oIE = _IECreate($cCmp1)
MsgBox(0,"Welcome" ,"Welcome to VMware Shield")
WinWaitActive("Login" )
$oIE  = _IEAttach ("Login","embedded")
$oForm = _IEFormGetObjByName ($oIE,"login")
if Not IsObj($oForm) Then
   MsgBox(0, "Error", "Failed to get login form")

$oQuery1 = _IEFormElementGetObjByName ($oForm, "j_username")
if Not IsObj($oQuery1) Then
   MsgBox(0, "Error", "Failed to get username box")

$oQuery2 = _IEFormElementGetObjByName ($oForm, "j_password")
if Not IsObj($oQuery2) Then
   MsgBox(0, "Error", "Failed to get password box")



Share this post

Link to post
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
Sign in to follow this  

  • Create New...