Example (to try this, start at first to download a bigger file);
AutoIt
#Region Includes#include <Array.au3>#include <_FF_DM.au3>#EndRegion IncludesIf_FFConnect()ThenIf_FF_DM_IsDownloading()Then; IDs of the current downloads$aIDs=_FF_DM_GetActiveDownloadsIDs()_ArrayDisplay($aIDs)IfUBound($aIDs)>1Then; Informations about the first download$aInfo=_FF_DM_GetDownloadInfo($aIDs[1])_ArrayDisplay($aInfo); Pausing the first download_FF_DM_DownloadPause($aIDs[1])If_FF_DM_GetDownloadState($aIDs[1])=4ThenMsgBox(64,"Download paused:",$aInfo[6])sleep(5000); Resume the first download_FF_DM_DownloadResume($aIDs[1])If_FF_DM_GetDownloadState($aIDs[1])=0ThenMsgBox(64,"Download is active:",$aInfo[6])EndIfEndIfEndIfExit
Make sure brain is in gear before opening mouth!Ignoring those who try to divert conversation with irrelevancies.If I put effort into communication, I expect you to read properly & fully, or just not comment.If I'm intent on insulting you or being rude, I will be obvious, not ambiguous about it.I'm only big and bad, to those who have an over-active imagination.I may have the Artistic Liesense to disagree with you.TheSaint's Toolbox
What have you tried to do? I can't reproduce this error.
i have this error for all ur examples.. like this:
Plain Text
#Region Includes
#include <Array.au3>
#include <_FF_DM.au3>
#EndRegion Includes
If _FFConnect() Then
If _FF_DM_IsDownloading() Then
; IDs of the current downloads
$aIDs = _FF_DM_GetActiveDownloadsIDs()
_ArrayDisplay($aIDs)
If UBound($aIDs) > 1 Then
; Informations about the first download
$aInfo = _FF_DM_GetDownloadInfo($aIDs[1])
_ArrayDisplay($aInfo)
; Pausing the first download
_FF_DM_DownloadPause($aIDs[1])
If _FF_DM_GetDownloadState($aIDs[1]) = 4 Then MsgBox(64,"Download paused:",$aInfo[6])
sleep(5000)
; Resume the first download
_FF_DM_DownloadResume($aIDs[1])
If _FF_DM_GetDownloadState($aIDs[1]) = 0 Then MsgBox(64,"Download is active:",$aInfo[6])
EndIf
EndIf
EndIf
Exit
i runs more 10 examples.. and all give this error i have latest version of all FF scripts and MozRelp
Hi all,
I was wondering if there's a way to start a download from autoit using the FireFox scripts...
I see that the download manager only help keeping track of the downloads, but is there a way I can start a download from the script of a image file for example? instead of opening it in firefox and doing a "saveas" ?
btw - i know i can use InetGet but i'm trying to download something that requires me to log-in, so the website recognizes InetGet is not logged in and it doesn't work and i must do it from the browser...
10x.
Edited by hagaizenberg, 03 November 2009 - 07:06 AM.
Hi all, I was wondering if there's a way to start a download from autoit using the FireFox scripts... I see that the download manager only help keeping track of the downloads, but is there a way I can start a download from the script of a image file for example? instead of opening it in firefox and doing a "saveas" ?
btw - i know i can use InetGet but i'm trying to download something that requires me to log-in, so the website recognizes InetGet is not logged in and it doesn't work and i must do it from the browser...
I not found manual helper on FF_DM ... i need monitor download of firefox without add-ons! Have idea? how to make for autoit?
I see a interessant of add-ons Auto-Shutdown is show download square 1 files/ 2 files (i need how to make show files 1,2,3,4....) http://inbasic.mozdev.org/root/ext2/home/index.htm
Please me help.. thanks
You can use Stilgar's _FF_DM UDF or monitor the Firefox download list located in the Profiles folder (think its "@AppDataDir & "\Mozilla\Firefox\Profiles\" & Current User Profile & "\downloads.sqlite")
I used to use the download list until Stilgar produced his beautiful UDF. I did a quick and dirty upgrade and ended up with a combination of both.