ISDBDownloader::GetURLContent

From MediaMonkey Wiki
Jump to navigation Jump to search

CoClass SDBDownloader, Interface ISDBDownloader

Function GetURLContent( URL As String) As String


Parameters

Name Type Description
URL String URL of the content to get


Method description

Returns URL content.

Added in MediaMonkey 4.0

Example code

Option Explicit

Dim UI  : Set UI = SDB.UI

Sub OnStartUp()
    Dim mnuTest

    Set mnuTest = SDB.UI.AddMenuItem(SDB.UI.Menu_Edit, 0, 0)
    mnuTest.Caption = SDB.Localize("Get URL content")
    mnuTest.OnClickFunc = "SDBOnClick"
    mnuTest.UseScript = Script.ScriptPath   
End Sub

Sub SDBOnClick(Item)   
  Dim Content
  Content = SDB.Downloader.GetURLContent("http://www.spiker.wz.cz/index.php")
  MsgBox( Content)
End Sub