Sandbox: Difference between revisions

From MediaMonkey Wiki
Jump to navigation Jump to search
(Testing an "automation object" TOC)
No edit summary
Line 1: Line 1:
This page is purely for testing
<div id="mainpage">
 
<div style="font-size:75%; border:none; margin:0; padding:0; color:#000; font-style: italic;">Sure the monkey can do it! Our monkey loves the music!</div>
 
<!--------------------------------Banner across top of page------------------------------>
{| style="width:100%; background:#fcfcfc; margin-top:+.9em; padding:0; margin:0; border:1px solid #ccc;"
|style="width:56%; color:#000"|
 
{| style="width:400px; border:solid 0px; background:none;"|style="width:325px; text-align:center; whte-space:nowrap; color:#000;"
|<div style="font-size:200%; border:none; margin:0; padding:0; color:#000;">[[Image:Monkey-Head-65px.png]]&nbsp;&nbsp;MediaMonkey wiki</div>
|}
 
|style="width:11%; font-size:95%; color:#000;"|
* Music Manager
* Player
* Tagger
|style="width:11%; font-size:95%;"|
* Renamer
* Converter
* Portable Devices
|style="width:11%; font-size:95%;" class="plainlinks"|
* CD/DVD Ripper
* CD/DVD Burner
* [http://www.mediamonkey.com/product.htm All&nbsp;features...]
|}<!--
 
 
<!------------Strapline immediately below banner---------->
{|style="width:100%; background:none; margin:-.8em 0 -.7em 0;" class="plainlinks"
|style="font-size:95%; padding:10px 0; margin:0px; text-align:left; white-space:nowrap; color:#000;"|
[[MediaMonkey Help|Help overview]]:&nbsp;[http://www.mediamonkey.com/sw/webhelp/frame/index.html Online Help]&nbsp;'''·''' [http://mediamonkey.com/faq/ Frequently Asked Questions (FAQ)]&nbsp;'''·''' [http://www.mediamonkey.com/forum/ Forum]&nbsp;'''·''' [mailto:support@mediamonkey.com Contact]
|style="font-size:95%; padding:10px 0; margin:0px; text-align: right; white-space:nowrap; color:#000;"| [[Special:Statistics|{{NUMBEROFARTICLES}}]] articles&nbsp;'''·''' [[Special:Allpages|Article Index]]
|}<!--
 
 
<!-----------------------Users------------------------>
{|style="border-spacing:8px; margin:0px -8px;"
|class="MainPageBG" style="width:55%; border:1px solid #cef2e0; background:#f5fffa; vertical-align:top; color:#000;"|
{|width="100%" cellpadding="2" cellspacing="5" style="vertical-align:top; background:#f5fffa;"
! <h2 style="margin:0; background:#cef2e0; font-size:120%; font-weight:bold; border:1px solid #a3bfb1; text-align:left; color:#000; padding:0.2em 0.4em;">Users</h2>
|-
|style="color:#000;"|
* [[About MediaMonkey]]
* [[Introduction For New Users]]
* [[Introduction To Scripts]]
* [[Introduction To Plugins]]
* [[Tips & Tricks]]
* [[User pages]]
|}<!--
 
<!------------------------------Developers------------------------------->
|class="MainPageBG" style="width:45%; border:1px solid #cedff2; background:#f5faff; vertical-align:top"|
{| width="100%" cellpadding="2" cellspacing="5" style="vertical-align:top; background:#f5faff;"
! <h2 style="margin:0; background:#cedff2; font-size:120%; font-weight:bold; border:1px solid #a3b0bf; text-align:left; color:#000; padding:0.2em 0.4em;">Developers</h2>
|-
|style="color:#000;"|
* [[Scripting]]
* [[Skinning]]
* [[Localizations]]
* [[Plug-ins]]
* [[Installation Packages]]
* [[Sandbox|Wiki Sandbox]] - for testing wiki syntax, etc.
|}
|}
 
 
</div>
 
[[MMWiki Introduction|Introduction to MediaMonkey Wiki]]
 
__NOTOC__  __NOEDITSECTION__
 
 
 
'''This page is purely for testing'''


==[[Main Page]]==
==[[Main Page]]==
Line 51: Line 125:
End Sub
End Sub
</source>
</source>
{{SkinEntry
|skinname=ITunes
|imageurl=ITunes_morten.jpg
|imagedesc=Morten's WMP11 skin for MM3
|author=[[User:Morten9300|Morten]]
|firstreleased=2007-01-26
|skinurl=http://www.diskusjon.no/index.php?act=Attach&type=post&id=135227
|version=1.2
|released=2007-01-28
|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>
== 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 ===
{{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 | 
}}
[[Category:Scripting|{{PAGENAME}}]]
[[Category:Automation objects|{{PAGENAME}}]]
[[Category:CoClass SDBApplication|{{PAGENAME}}]]

Revision as of 19:55, 5 September 2007

Sure the monkey can do it! Our monkey loves the music!
  MediaMonkey wiki
  • Music Manager
  • Player
  • Tagger
  • Renamer
  • Converter
  • Portable Devices

Users

Developers


Introduction to MediaMonkey Wiki



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