Sandbox: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
m (Updated skinentry)
(Testing an "automation object" TOC)
Line 1: Line 1:
This page is purely for testing
This page is purely for testing
[[Image:WMP11_1.jpg|center|thumb|100px|Thumb test]]


==[[Main Page]]==
==[[Main Page]]==
Line 56: Line 53:


{{SkinEntry
{{SkinEntry
|skinname=WMP11
|skinname=ITunes
|imageurl=WMP11_1.jpg
|imageurl=ITunes_morten.jpg
|imagedesc=Morten's WMP11 skin for MM3
|imagedesc=Morten's WMP11 skin for MM3
|author=Morten
|author=[[User:Morten9300|Morten]]
|firstreleased=2007-01-26
|firstreleased=2007-01-26
|skinurl=http://www.diskusjon.no/index.php?act=Attach&type=post&id=135227
|skinurl=http://www.diskusjon.no/index.php?act=Attach&type=post&id=135227
|version=1.2
|version=1.2
|released=2007-01-28
|released=2007-01-28
|notes=This skin tries to look like Windows Media Player v11 as much as possible. Some usability enhancements are made that are not available in WMP11 itself.
|notes=This skin tries to look like ITunes v7 as much as possible. Some usability enhancements are made that are not available in ITunes7 itself.
}}
}}




__NOTOC__
<div style="float: right; margin-left: 1em; margin-bottom: 0.5em; background-color:#F9F9F9; border:1px solid #CCCCCC; font-size:95%; padding:5px; font-size: 85%;">
{{:MediaMonkey_Automation_objects}}
</div>


==ITunes==
== CoClass SDBApplication ==
[[Image:ITunes_morten.jpg|right|thumb|300px|Morten's ITunes7 skin for MM3]]


'''Author:''' [[User:Morten9300|Morten]]
This is the main MediaMonkey scripting object that you initially have accessible as 'SDB' variable in your scripts. All your communication with MediaMonkey should start here, you can get references to other objects from properties of this object.


'''First released:''' 2007-01-26
=== ISDBApplication members ===


'''Current version:''' [http://www.diskusjon.no/index.php?act=Attach&type=post&id=135227 Download] (v1.2 - 2007-01-28)
{{MethodsList
|[[ISDBApplication::AllVisibleSongList|AllVisibleSongList]] |Property Get | 
|[[ISDBApplication::ApplicationPath|ApplicationPath]] |Property Get | 
|[[ISDBApplication::CommonDialog|CommonDialog]] |Property Get | 
|[[ISDBApplication::CreateTimer|CreateTimer]] |Method | 
|[[ISDBApplication::CurrentSongList|CurrentSongList]] |Property Get | 
|[[ISDBApplication::CursorType|CursorType]] |Property Get/Let | 
|[[ISDBApplication::Database|Database]] |Property Get | 
|[[ISDBApplication::Device|Device]] |Property Get | 
|[[ISDBApplication::Format|Format]] |Method | 
|[[ISDBApplication::IniFile|IniFile]] |Property Get | 
|[[ISDBApplication::IsRunning|IsRunning]] |Property Get | 
|[[ISDBApplication::Localize|Localize]] |Method | 
|[[ISDBApplication::LocalizedFormat|LocalizedFormat]] |Method | 
|[[ISDBApplication::LocalizeGen|LocalizeGen]] |Method | 
|[[ISDBApplication::MainTracksWindow|MainTracksWindow]] |Property Get | 
|[[ISDBApplication::MainTree|MainTree]] |Property Get | 
|[[ISDBApplication::MessageBox|MessageBox]] |Method | 
|[[ISDBApplication::MyMusicPath|MyMusicPath]] |Property Get | 
|[[ISDBApplication::NewSongData|NewSongData]] |Property Get | 
|[[ISDBApplication::NewSongList|NewSongList]] |Property Get | 
|[[ISDBApplication::NewStringList|NewStringList]] |Property Get | 
|[[ISDBApplication::Objects|Objects]] |Property Get/Let | 
|[[ISDBApplication::Player|Player]] |Property Get | 
|[[ISDBApplication::PlaylistByTitle|PlaylistByTitle]] |Property Get | 
|[[ISDBApplication::ProcessMessages|ProcessMessages]] |Method | 
|[[ISDBApplication::Progress|Progress]] |Property Get | 
|[[ISDBApplication::RegisterIcon|RegisterIcon]] |Method | 
|[[ISDBApplication::RegisterIconHandle|RegisterIconHandle]] |Method | 
|[[ISDBApplication::Registry|Registry]] |Property Get | 
|[[ISDBApplication::SelectedSongList|SelectedSongList]] |Property Get | 
|[[ISDBApplication::SelectFolder|SelectFolder]] |Method | 
|[[ISDBApplication::ShutdownAfterDisconnect|ShutdownAfterDisconnect]] |Property Get/Let | 
|[[ISDBApplication::TemporaryFolder|TemporaryFolder]] |Property Get | 
|[[ISDBApplication::toASCII|toASCII]] |Method | 
|[[ISDBApplication::Tools|Tools]] |Property Get | 
|[[ISDBApplication::UI|UI]] |Property Get | 
|[[ISDBApplication::VersionHi|VersionHi]] |Property Get | 
|[[ISDBApplication::VersionLo|VersionLo]] |Property Get | 
|[[ISDBApplication::VersionRelease|VersionRelease]] |Property Get | 
|[[ISDBApplication::VersionString|VersionString]] |Property Get | 
|[[ISDBApplication::WebControl|WebControl]] |Property Get | 
}}
 
=== ISDBApplicationEvents members ===
 
{{MethodsList
|[[ISDBApplicationEvents::OnBeforeTracksMove|OnBeforeTracksMove]] |Event | 
|[[ISDBApplicationEvents::OnChangedSelection|OnChangedSelection]] |Event | 
|[[ISDBApplicationEvents::OnPause|OnPause]] |Event | 
|[[ISDBApplicationEvents::OnPlay|OnPlay]] |Event | 
|[[ISDBApplicationEvents::OnSeek|OnSeek]] |Event | 
|[[ISDBApplicationEvents::OnShutdown|OnShutdown]] |Event | 
|[[ISDBApplicationEvents::OnStop|OnStop]] |Event | 
|[[ISDBApplicationEvents::OnTrackAdded|OnTrackAdded]] |Event | 
|[[ISDBApplicationEvents::OnTrackConverted|OnTrackConverted]] |Event | 
|[[ISDBApplicationEvents::OnTrackProperties|OnTrackProperties]] |Event | 
}}


'''Notes:''' This skin tries to look like ITunes v7 as much as possible. Some usability enhancements are made that are not available in ITunes7 itself.
[[Category:Scripting|{{PAGENAME}}]]
[[Category:Automation objects|{{PAGENAME}}]]
[[Category:CoClass SDBApplication|{{PAGENAME}}]]

Revision as of 17:58, 7 May 2007

This page is purely for testing

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
  Next

  ' Write all back to DB and update tags
  list.UpdateAll
End Sub

ITunes

Morten's WMP11 skin for MM3

Author: Morten

First released: 2007-01-26

Current version: Download (v1.2 - 2007-01-28)

Web link:

Notes: This skin tries to look like ITunes v7 as much as possible. Some usability enhancements are made that are not available in ITunes7 itself.



CoClass SDBApplication

This is the main MediaMonkey scripting object that you initially have accessible as 'SDB' variable in your scripts. All your communication with MediaMonkey should start here, you can get references to other objects from properties of this object.

ISDBApplication members

Name Type Description
AllVisibleSongList Property Get
ApplicationPath Property Get
CommonDialog Property Get
CreateTimer Method
CurrentSongList Property Get
CursorType Property Get/Let
Database Property Get
Device Property Get
Format Method
IniFile Property Get
IsRunning Property Get
Localize Method
LocalizedFormat Method
LocalizeGen Method
MainTracksWindow Property Get
MainTree Property Get
MessageBox Method
MyMusicPath Property Get
NewSongData Property Get
NewSongList Property Get
NewStringList Property Get
Objects Property Get/Let
Player Property Get
PlaylistByTitle Property Get
ProcessMessages Method
Progress Property Get
RegisterIcon Method
RegisterIconHandle Method
Registry Property Get
SelectedSongList Property Get
SelectFolder Method
ShutdownAfterDisconnect Property Get/Let
TemporaryFolder Property Get
toASCII Method
Tools Property Get
UI Property Get
VersionHi Property Get
VersionLo Property Get
VersionRelease Property Get
VersionString Property Get
WebControl Property Get


ISDBApplicationEvents members

Name Type Description
OnBeforeTracksMove Event
OnChangedSelection Event
OnPause Event
OnPlay Event
OnSeek Event
OnShutdown Event
OnStop Event
OnTrackAdded Event
OnTrackConverted Event
OnTrackProperties Event