Sign in to follow this  
Followers 0
Marlo

FireFox help

4 posts in this topic

Hey guys. I'm looking to create a script that will download multiple links all at once without the fuss of having to confirm downloads and enterting the links manuallu (yup, I'm THAT lazy)

So i was thinking of writing somthing that would bypass the main Firefox window and go straight to the download window but no matter how hard i look i cant seem to find a way to do that.

I have already created a script that will go through and enter the links automatically and then click the Save button but i dont like it.

Also have tried looking for Firefox commands but to no avail. Can anyone shed some light onto this for me?

Regards

P.S

i need it to be Firefox because of some of the cookies required.


Click here for the best AutoIt help possible.Currently Working on: Autoit RAT

Share this post


Link to post
Share on other sites



InetGet($somelink, $somepath) ??

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

Const $openfrom = "Öffnen von "     ; english: open from  
Const $saveto = "Speichern unter"   ; english: save to

Dim $array[3] = _ 
[ _ 
"http://www.drakonis.org/albums/comix/thumb_comix-3.jpg", _ 
"http://www.drakonis.org/albums/comix/comix-10.jpg", _ 
"http://www.drakonis.org/albums/comix/comix-46.jpg" _
]
$len = UBound($array)-1

For $i=0 To $len Step 1
    ShellExecute($array[$i])
    If WinWaitActive($openfrom&getName($array[$i]),"",1) == 0 Then 
        If WinWaitActive($saveto&getName($array[$i]),"",1) == 0 Then
            Send ("^s")
            Send("{ENTER}")
        Else    
            MsgBox(0,"Error",$array[$i]&" wasn´t downloaded!")
            ContinueLoop
        EndIf
    Else
        Send("{ENTER}")
    EndIf
Next

Func getName($url)
    Return StringMid($url,StringInStr($url,"/",0,-1)+1)
EndFunc

Isn´t perfect too... :P

But maybe it helps you

Edited by bluelamp

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