From MediaMonkey Wiki
Revision as of 13:50, 5 April 2008 by Steegy (talk | contribs)
Jump to navigation Jump to search
Song title
Scripting valueObject SongData > Title
      Value typeString
Database fieldTable Songs > SongTitle
      Field typeString
Tracklist column"Title"

CoClass SDBSongData, Interface ISDBSongData

Property Get/Let Title As String

Property description

This page is purely for testing

This html2wiki converter is very useful.

Thumb test

Main Page

Main Page

Main Page

Main Page

Main Page

Name Type Description

// Hello World in Microsoft C# ("C-Sharp").

using System;

class HelloWorld
    public static int Main(String[] args)
        Console.WriteLine("Hello, World!");
        return 0;
' A simple script that swaps the content of Title and Artist fields of selected tracks

Sub SwapArtistTitle
  ' Define variables
  Dim list, itm, i, tmp

  ' Get list of selected tracks from MediaMonkey
  Set list = SDB.CurrentSongList 

  ' Process all selected tracks
  For i=0 To list.count-1
    Set itm = list.Item(i)

    ' Swap the fields
    tmp = itm.Title
    itm.Title = itm.ArtistName
    If itm.AlbumArtistName = itm.ArtistName Then     ' Modify Album Artist as well if is the same as Artist
      itm.AlbumArtistName = tmp
    End If
    itm.ArtistName = tmp

  ' Write all back to DB and update tags
End Sub