Change view to song currently playing

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

MoDementia
Posts: 1321
Joined: Thu Jun 15, 2006 3:26 pm
Location: Geelong, Victoria, Australia

Change view to song currently playing

Post by MoDementia » Mon May 12, 2008 9:04 pm

Nimblerabit wrote:I was wondering if there is a way to get the main display to "move" to the song that is currently playing, like iTunes does.
Not exactly the same thing but might be useful for someone

Save as ...Scripts\Auto\MoveToCurrentPlayingNode.vbs

Add the ini Section to ...Scripts\Scripts.ini
Add your shortcut if required.
e.g.
Shortcut=Alt+P

Code: Select all

'
' MediaMonkey Script
'
' NAME: MoveToCurrentPlayingNode.vbs
'
' AUTHOR: MoDementia
' DATE : 13-05-08
'
'  Creates a Current Playing Node with only the Current Playing Track 
'  Shortcut to the node can be added to the Scripts.ini section
'
'  *** ini Section
' [MoveToCurrentPlayingNode]
' Filename=Auto\MoveToCurrentPlayingNode.vbs
' Procname=MoveToCurrentPlayingNode
' Order=100
' DisplayName=Move To Current Playing Node
' Description=Move To Current Playing Node
' Language=VBScript
' ScriptType=0
' Shortcut=
' *** End ini Section

Sub OnStartup
  Dim Tree, Node
  Set Tree = SDB.MainTree
  Set Node = Tree.CreateNode
  Node.Caption = "Current Playing"
  Node.IconIndex = 40
  Node.UseScript = Script.ScriptPath
  Node.OnFillTracksFunct = "CurrentPlaying"
  Tree.AddNode Tree.Node_FilesToEdit, Node, 0
  Node.HasChildren = False
End Sub

Sub CurrentPlaying(Node)
  SDB.MainTracksWindow.AddTrack(SDB.Player.CurrentSong)
  SDB.MainTracksWindow.FinishAdding
End Sub

Sub MoveToCurrentPlayingNode
  Dim Tree, xCounter
  Set Tree = SDB.MainTree
  SET Tree.CurrentNode = Tree.Node_FilesToEdit
  For xCounter = 1 to 9999
    Set Tree.CurrentNode = Tree.PreviousNode(Tree.CurrentNode)
    If Tree.CurrentNode.Caption = "Current Playing" Then
      Exit Sub
    End If
  Next
End Sub

gggirlgeek
Posts: 67
Joined: Mon Feb 11, 2008 4:24 pm
Location: Seattle, WA

Re: Change view to song currently playing

Post by gggirlgeek » Tue Sep 16, 2008 7:31 pm

Yaaaaaaaaaay! It works. This has been irritating me endlessly. I still wish I could go straight to it's listing in the Location node in order to see it next to the other files in its folder, to compare and edit them all, but this will do!

Eyal
Posts: 3110
Joined: Sun Jun 26, 2005 9:27 am
Location: Québec

Re: Change view to song currently playing

Post by Eyal » Tue Sep 16, 2008 8:02 pm

Hey I didn't saw this one.

Cool. Alt+P is fine for me. Fast.

I'll be glad to have the same thing (a keyboard shortcut) but to jump to the current Library->Location->folder for the current playing song.
It's something I wanted to have since 2005'! (I'm tired of right-click->FindMore->Folder (Library))...

Thanks MoDementia.
Skins for MediaMonkey: Cafe, Carbon, Helium, Spotify, Zekton. [ Wiki Zone ].

Post Reply