|
源代码
Local $oIE=_IEAttach("ring")
$oFrames = _IEFrameGetCollection ($oIE)
$iNumFrames = @extended
For $i = 0 to $iNumFrames - 1
$oForm = _IEFrameGetCollection($oIE, $i )
Local $nxsrc=_IEPropertyGet($oForm,"locationurl")
MsgBox(0,$iNumFrames,$nxsrc)
Next
一个多层框架的页面,第一个和最后一个框架可以获取locationurl,但是第二个无法获取。调试错误信息为:
--> COM Error Encountered in test.au3
----> $IEComErrorScriptline = 2693
----> $IEComErrorNumberHex = 80070005
----> $IEComErrorNumber = -2147024891
----> $IEComErrorWinDescription = 拒绝访问。
----> $IEComErrorDescription =
----> $IEComErrorSource =
----> $IEComErrorHelpFile =
----> $IEComErrorHelpContext =
----> $IEComErrorLastDllError = 0 |
|