_IEFormElementGetObjByName两次同一个name出错
不知是什么原因,求解。 Func ip_mac()$oIE=_IECreate("http://192.168.0.1/security/ip_mac.htm",0,1,1,0)
_IEPropertySet($oIE,"toolbar",0);隐藏工具栏
_IEPropertySet($oIE,"width",800);设置IE宽800像素
_IEPropertySet($oIE,"height",600);设置ie高600像素
_IEPropertySet($oIE,"resizable",0);设置ie不可以调整大小
_IEPropertySet($oIE,"title","Webpage AutoTest v0.0.2");设置ie标题取代原标题
$oForm = _IEFormGetObjByName($oIE,"frm_ipmacbind")
$oQuery = _IEFormElementGetObjByName($oForm,"btn_scan")
_IEAction($oQuery,"click")
Sleep(6000)
$oQuery = _IEFormElementGetObjByName($oForm,"chk_all")
_IEAction($oQuery,"click")
$oQuery = _IEFormElementGetObjByName($oForm,"btn_bind")
_IEAction($oQuery,"click")
$oQuery = _IEFormElementGetObjByName($oForm,"chk_all")
_IEAction($oQuery,"click")
$oQuery = _IEFormElementGetObjByName($oForm,"btn_unbind")
_IEAction($oQuery,"click")
EndFunc
出错信息Return SetError($_IEStatus_Success, $i_length, $o_object.elements.item($s_Name, $i_index))
Return SetError($_IEStatus_Success, $i_length, $o_object.elements.item($s_Name, $i_index)^ ERROR $oQuery = _IEFormElementGetObjByName($oForm,"removeall")
_IEAction($oQuery,"click")
$oQuery = _IEFormElementGetObjByName($oForm,"chk_all")
_IEAction($oQuery,"click")
$oQuery = _IEFormElementGetObjByName($oForm,"macaccept")
_IEAction($oQuery,"click")
这样也会导致同样的错误 没有人能解决么?难道是autoit本身的问题? 算了,放弃了,晚上查查资料再说,要不就是autoit的ie.au3有问题,要不就是网页的脚本有问题。 {:face (355):}
页:
[1]