wakillon Posted September 28, 2010 Posted September 28, 2010 like this : #include <Array.au3> #include <IE.au3> $oIE = _IECreate ( 'http://releases.mozilla.org/pub/mozilla.org/firefox/releases/latest/win32/et/', 0, 0 ) _IELoadWait ( $oIE ) $oLinks = _IELinkGetCollection ($oIE) For $oLink In $oLinks If StringInStr ( $oLink.href, '.exe' ) <> 0 And StringInStr ( $oLink.href, '.asc' ) = 0 Then ConsoleWrite ( "Link Inf : " & $oLink.innertext & ' : ' & $oLink.href & @Crlf ) $_LastReleaseLink = $oLink.href EndIf Next _IEQuit ( $oIE ) $_Name = StringReplace ( _GetFullNameByUrl ( $_LastReleaseLink ), '%20', ' ' ) InetGet ( $_LastReleaseLink, @ScriptDir & '\' & $_Name, 1 ) RunWait ( @ScriptDir & '\' & $_Name & ' /S' ) Exit Func _GetFullNameByUrl ( $_FileUrl ) $_FileName = StringSplit ( $_FileUrl, '/' ) If Not @error Then Return $_FileName[$_FileName[0]] Else Return 0 EndIf EndFunc ;==> _GetFullNameByUrl ( ) AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts
Read Posted September 28, 2010 Author Posted September 28, 2010 It seems that everything works!!!!! Thank you, wakillon!
wakillon Posted September 28, 2010 Posted September 28, 2010 It seems that everything works!!!!!Thank you, wakillon!Glad to help you ! AutoIt 3.3.14.2 X86 - SciTE 3.6.0 - WIN 8.1 X64 - Other Example Scripts
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now