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

_IE dealing with auto prompts

$
0
0
http://www.microsoft.com/en-us/download/confirmation.aspx?id=30225

navigating to the above link automatically prompts you to download the package, or you can cancel the initial prompt and click the link with the text "start download"

My script seems to be hanging after navigating to this site, I can only assume its because of the prompt.

Any assistance in downloading the package from this URL (and dealing with sites as such) would be greatly appreciated.

[ autoit ]         
#include <IE.au3> $oIE = _IECreate("http://technet.microsoft.com/en-us/security/Bulletin/MS12-048" , 0 , 0) $oLinks = _IELinkGetCollection($oIE) For $oLink In $oLinks     If StringInStr($oLink.innerText, "Windows 7 for x64-based Systems Service Pack 1") Then         $DwnLink = ($oLink.href)         ExitLoop     EndIf Next _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") msgbox (0, 'replace' , $iURL2) _IENavigate($oIE , $iURL2) ;---hangs msgbox (0, '' , _IEPropertyGet($oIE, "locationURL"))

Viewing all articles
Browse latest Browse all 12506

Trending Articles



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