Marlo Posted October 5, 2008 Share Posted October 5, 2008 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 Link to comment Share on other sites More sharing options...
ludocus Posted October 5, 2008 Share Posted October 5, 2008 InetGet($somelink, $somepath) ?? Link to comment Share on other sites More sharing options...
Marlo Posted October 6, 2008 Author Share Posted October 6, 2008 It needs to be firefox =( Click here for the best AutoIt help possible.Currently Working on: Autoit RAT Link to comment Share on other sites More sharing options...
bluelamp Posted October 6, 2008 Share Posted October 6, 2008 (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... But maybe it helps you Edited October 6, 2008 by bluelamp Link to comment Share on other sites More sharing options...
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