Difference between revisions of "ISDBApplicationEvents::OnDownloadFinished"

From MediaMonkey Wiki
Jump to: navigation, search
(Event description)
Line 4: Line 4:
  
 
{{MethodParameters  
 
{{MethodParameters  
  |URL |String | URL of file that has been just downloaded}}
+
  |URL |String | URL of file that has been just downloaded
 +
|Success |Boolean | Download was successful (true), Download has failed (false)}}
  
 
===Event description===
 
===Event description===
Line 19: Line 20:
 
End Sub
 
End Sub
  
Sub SDBDownloadFinished( URL)
+
Sub SDBDownloadFinished( URL, Success)
     MsgBox("Download has finished for the URL:"&URL)
+
     If Success then
 +
      MsgBox("Download has finished successfuly for the URL:"&URL)
 +
    Else
 +
      MsgBox("Download has failed for the URL:"&URL)
 +
    End If 
 
End Sub
 
End Sub
  

Revision as of 13:33, 10 June 2010

CoClass SDBApplication, Interface ISDBApplicationEvents

Sub OnDownloadFinished(URL As String)


Parameters

Name Type Description
URL String URL of file that has been just downloaded
Success Boolean Download was successful (true), Download has failed (false)


Event description

Is called whenever a file download finishes.

Note: This event takes effect from MediaMonkey 4.0 and higher!

Example code

Sub OnStartUp()    
    Script.RegisterEvent SDB, "OnDownloadFinished", "SDBDownloadFinished"
End Sub

Sub SDBDownloadFinished( URL, Success)
    If Success then
      MsgBox("Download has finished successfuly for the URL:"&URL)
    Else
      MsgBox("Download has failed for the URL:"&URL)
    End If  
End Sub