sriazwadiputra Posted November 6, 2014 Posted November 6, 2014 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") Exit EndIf $oQuery1 = _IEFormElementGetObjByName ($oForm, "j_username") if Not IsObj($oQuery1) Then MsgBox(0, "Error", "Failed to get username box") Exit EndIf $oQuery2 = _IEFormElementGetObjByName ($oForm, "j_password") if Not IsObj($oQuery2) Then MsgBox(0, "Error", "Failed to get password box") Exit EndIf _IEFormElementSetValue($oQuery1,$cCmp2) _IEFormElementSetValue($oQuery2,$cCmp3) _IEFormSubmit($oForm)
Exit Posted November 6, 2014 Posted November 6, 2014 And where is the info about the $cmdline ? App: Au3toCmd UDF: _SingleScript()
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now