写了一段程序代码,想自动登录一个网页系统(https://www.whjyx.com/user/),第二个密码框是一个安全控件,试了点,点击没问题一切正常,密码却怎么也输不进去,奇怪。用ControlSetTxt("[CLASS:IEFrame]", "","[CLASS:ATL:Edit;INSTANCE:1]", $sUsrPwd)输入,控件显示星号,系统提示,未输入密码。
没辄了,求教下大神~ 如何搞定这个密码控件呢??Dim $oIE = _IECreate($sUrl,0,$iWinShow)
_IELoadWait($oIE)
Sleep($iSleep)
Dim $oForm = _IEFormGetObjByName($oIE,"logonForm")
Dim $oUsrName = _IEGetObjById($oForm,"per-userEmail")
_IEFormElementSetValue($oUsrName,$sUsrName)
Sleep($iSleep)
ControlClick("[CLASS:IEFrame]", "", "[CLASS:ATL:Edit;INSTANCE:1]")
ControlSend("[CLASS:IEFrame]", "","[CLASS:ATL:Edit;INSTANCE:1]", $sUsrPwd)
;ControlSetText("[CLASS:IEFrame]", "","[CLASS:ATL:Edit;INSTANCE:1]", $sUsrPwd)
Sleep(5000)
Dim $oSubmit = _IEGetObjById($oForm,"per-submit")
_IEAction($oSubmit,"click")
|