I know that in MM v5 the Playing list can be undocked and moved to an external monitor. If a large headier showing "Now Playing" and the track title the we don't need a script. Otherwise we need a script that achieves the same effect as the v4 script.
Here is the v4 script:
代码: 全选
' a simple Show Dance Name script
'just adds a docking panel with a header and dance name
'
'
'here are the ini-Lines
'
' [ShowDance]
' FileName=ShowDance.vbs
' ProcName=ShowDance
' Order=17
' DisplayName=Show Dance title
' Description=Shows Dance Title
' Language=VBScript
' ScriptType=0
'
Dim Tmr, strOldsong, HTMLstr
Dim dncPanel
Sub ShowDance
GetDanceData
CreatePanel
Set Tmr = SDB.CreateTimer(1000)
Script.RegisterEvent Tmr, "OnTimer", "Update"
End Sub
Sub GetDanceData
Dim Song, StrData, strHeader
If SDB.Player.IsPlaying Then
Set Song = SDB.Player.CurrentSong
StrData = Song.title
strOldsong = song.path
End If
StrHeader = "<p align=center> <b><font face=Arial Size=16 color=#0000FF>Now Playing</font></b>"
StrData = StrHeader & "<p align=center> <b> <font face=Verdana Size=7 color=red>" & StrData & " </font>"
HTMLstr = "<!DOCTYPE HTML><html><head></head><body>" & strData & "</body></html>"
End Sub
Sub CreatePanel
Dim Form
'creates the panel
Set Form = SDB.Objects("DancePanel")
If Form is Nothing Then
Set Form = SDB.UI.NewDockablePersistentPanel("DancePanel")
Form.DockedTo = 2
Form.Common.Width = 250
Form.Caption = "Dance"
Set dncPanel = SDB.UI.NewActiveX(Form, "Shell.Explorer")
dncPanel.Common.Align = 5
dncPanel.SetHTMLDocument(HTMLstr)
Form.Common.Visible = True
SDB.Objects("DancePanel") = Form
Script.RegisterEvent Form, "OnClose", "FormClose"
End If
End Sub
Sub Update(Timer)
Dim NewSong
If SDB.Player.IsPlaying Then
Set NewSong = SDB.Player.CurrentSong
If strOldsong <> NewSong.path Then
GetDanceData
dncPanel.SetHTMLDocument(HTMLstr)
End If
End If
End Sub
Sub FormClose(Node)
SDB.Objects("DancePanel") = Nothing
Script.UnregisterEvents Tmr
End Sub
I said, "If we can make MM v5 ...", but that should really be "If I ..." I am our group's only MM technical support. And I don't know JavaScript. (We are in trouble regarding MM v5, but I'll be passing the support off to someone else anyway in the next year so it will be someone else's problem.)
The "We" I refereed to is a folkdance group that has used Mediamonkey since about 2009. There are currently 5 members of the group that run MM to play music for weekly dances. 3 of those 5 are nontechnical (actually, technophobes) and don't handle even small changes well. Switching to MM v5 will be traumatic to them. Making that banner for the Playing list. (So will finding a v5 equivalent for the v4 Aqua4 skin,)





