Sign in to follow this  
Followers 0
slipsystem

Inetget Alternate

2 posts in this topic

Heres a script that I wrote as an alternative to inetget.

I noticed that you are not able to pause a download or see how far it is

for this you need to have free download manager installed.

Thanks to Dedcase for the help. 

#include <IE.au3>


$INIFile = "LinkScanner.ini"

$InpLink = InputBox("Link Scanner","Paste URL Here")
$InpExtention = InputBox("Link Scanner","type the extention")
$Number = StringLen($InpExtention)
$InstallationPath = IniRead($INIFile,"Path","Directory","Error")
$DLManager = IniRead($INIFile,"Path","DownloadManager","Error")&" "
$oIE = _IECreate($InpLink)
$oLinks = _IELinkGetCollection($oIE)
$Download = ''
DirCreate("C:\Downloads")

For $oLink In $oLinks
If StringRight($oLink.href,$Number) = $InpExtention  Then $Download &= $oLink.href & @CR
$sLink = FileRead('C:\Downloads\downloaded.txt')

        

        If StringInStr($sLink, $Download) Then ContinueLoop

       RunWait ($DLManager&""""&$Download&"""")
        
         FileWrite('C:\Downloads\downloaded.txt', $Download & @CRLF)
Next
If FileExists($INIFile) = 0 Then
    
    If FileExists("C:\Program Files\Free Download Manager\fdm.exe") Then
    $INIDLDMan = "C:\Program Files\Free Download Manager\fdm.exe"
    Else
    $INIDLDMan = InputBox("Link Scanner","OMG... Where Is Free Download Manager")
   EndIf
    IniWrite ( $INIFile, "Path","Directory",@ScriptDir&"\")
    IniWrite ( $INIFile, "Path","DownloadManager", $INIDLDMan & " -fs" )
 EndIf

Share this post


Link to post
Share on other sites



#2 ·  Posted (edited)

Any particular reason you avoided InetGet?  I'd argue it's preferable as it doesn't require additional software to be on the client machine. Here is a shamelessly self-promoted example of a script similar to yours which uses InetGet and provides download status.

edit: it is far from robust and doesn't have error handling, just FYI

also doesn't have pause capability, ahem. :sweating:

Edited by spudw2k

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0