Quantcast
Channel: AutoIt v3 - General Help and Support
Viewing all articles
Browse latest Browse all 12506

$o_object.document.links.length ERROR

$
0
0
[ autoit ]      
C:\Program Files\AutoIt3\Include\IE.au3 (929) : ==> The requested action with this object has failed.: Return SetError($_IEStatus_Success, $o_object.document.links.length, $o_object.document.links) Return SetError($_IEStatus_Success, $o_object.document^ ERROR

Is being thrown by this snippet

[ autoit ]         
$oIE = _IECreate($oLink.Address , 0 , 0) $oLinks = _IELinkGetCollection($oIE) $DwnLink = "" For $oLink In $oLinks If StringInStr($oLink.innerText, "Windows 7 for x64-based Systems Service Pack 1") Then $DwnLink = ($oLink.href) ExitLoop EndIf Next If $Dwnlink <> "" Then _IENavigate($oIE , $DwnLink) $iURL = _IEPropertyGet($oIE, "locationURL") $iURL2 = stringregexpreplace($iURL , "http://www.microsoft.com/en-us/download/details" , "http://www.microsoft.com/en-us/download/confirmation") _IENavigate($oIE , $iURL2 , 0) sleep (10000) winkill ("Download Security Update") $oLinks = _IELinkGetCollection($oIE) For $oLink In $oLinks If StringInStr($oLink.innerText, "Start Download") Then $DwnLink = ($oLink.href) ExitLoop EndIf Next $aDwnLink = stringsplit ($DwnLink , "/") InetGet($DwnLink, @ScriptDir & "\KBs\" & $aDwnLink[$aDwnLink[0]] , 1 , 0) _IEQuit ($oIE) Endif

I am in the process of adding error checking to try and handle it, but was hoping someone more skilled could pinpoint my downfall in the meanwhile.

Viewing all articles
Browse latest Browse all 12506

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>