Starting MM Where You Left Off

Get answers about using the current release of MediaMonkey.

Moderator: Gurus

Starting MM Where You Left Off

Postby larebz on Wed Dec 14, 2005 12:23 am

Was just wondering wether there was something that i could do so that, say i close MM and its on a playlist, that when i start it up again it will start up in that same playlist instead of starting in the default library location??
larebz
 

Postby jc836 on Wed Dec 14, 2005 12:31 am

The last "Now Playing" list will still be next to the player. If you are using a Playlist you have created and saved, you should have selected it from the Tree and then sent the fully highlighted list (this is how I do it) to the player. If the large panel is blank-you can use the Now Playing entry in the Tree to show the selected list. Another thing, the last song played will still be highlighted.
jc836
 
Posts: 213
Joined: Sun Nov 20, 2005 12:24 am
Location: Western PA

Postby larebz on Wed Dec 14, 2005 1:19 am

yer tru, but say though if i want to start it up in the artist or title node in my library is there no way to do that?? or even better is there any way to make it so that it will list all my files on the library node...? thanks for the help btw
larebz
 

Postby Guest on Wed Dec 14, 2005 12:47 pm

larebz wrote:or even better is there any way to make it so that it will list all my files on the library node...?


The "Acessible tracks" playlist has all your tracks.
Guest
 

Postby Steegy on Wed Dec 14, 2005 2:24 pm

You can use an auto-script to choose the node to open and show when starting MM.
Skinning | Scripting
Not active on the forum anymore... (sorry)
Steegy
 
Posts: 3386
Joined: Sun Nov 06, 2005 12:17 am
Location: Europe > Belgium

Postby larebz on Wed Dec 14, 2005 11:13 pm

yer that would be cool, where can i get that from then??
larebz
 

Postby Steegy on Thu Dec 15, 2005 6:48 pm

Oops! :o I forgot something.

Navigating to a specific node by using a script isn't really difficult (I already did that), but the opened node has to be saved when MM exits and that is the hard part.

Detecting the closing of MM is an impossible thing to do for me (for now). Maybe other scripters know how to do that.
I'm hoping that in newer versions of MM the scripting possibilities will be expanded (eg. adding onClose event) so this could easily be done.

Maybe it would be useful to see your problem as a "wish" to be implemented is the future because other people might be interested in this too.

Anyway, I hope you're not too disappointed that I can't help you.

Cheers
Steegy
Skinning | Scripting
Not active on the forum anymore... (sorry)
Steegy
 
Posts: 3386
Joined: Sun Nov 06, 2005 12:17 am
Location: Europe > Belgium

Postby DranoK on Thu Dec 15, 2005 11:56 pm

I'd really love to have some kind of script to just open a specific node each time I open. It doesn't need to save where it was or anything, just the same, hard-coded node each time.

Can you help me? ^^;

Thanks!

Steegy wrote:Oops! :o I forgot something.

Navigating to a specific node by using a script isn't really difficult (I already did that), but the opened node has to be saved when MM exits and that is the hard part.

Detecting the closing of MM is an impossible thing to do for me (for now). Maybe other scripters know how to do that.
I'm hoping that in newer versions of MM the scripting possibilities will be expanded (eg. adding onClose event) so this could easily be done.

Maybe it would be useful to see your problem as a "wish" to be implemented is the future because other people might be interested in this too.

Anyway, I hope you're not too disappointed that I can't help you.

Cheers
Steegy
DranoK
 

Postby Steegy on Fri Dec 16, 2005 12:10 am

Yes, I think I can.
I just have to know which node you want to have opened on MM startup.
Is it an album, genre, artist, location, ... node? What's the name of it?

I'll need a structure like...
Code: Select all
Library
   |_ Ordering
        |_ Mood
             |_ Mild
or

Playlists
   |_ MasterPlaylist
        |_ SubPlay1
             |_ BestOf

...if it's complicated node you want.

Cheers
Steegy
Skinning | Scripting
Not active on the forum anymore... (sorry)
Steegy
 
Posts: 3386
Joined: Sun Nov 06, 2005 12:17 am
Location: Europe > Belgium

Postby Peke on Fri Dec 16, 2005 1:00 am

Why don't you use ScriptType=2 Script which will be executed on every Play and it will save current Tree Pos.
Best regards,
Pavle
MM Plug-in Developer and Fan (MM FanSite)
Image
Image
Peke
 
Posts: 6265
Joined: Wed Jun 11, 2003 12:21 am
Location: Serbia

Postby larebz on Fri Dec 16, 2005 1:50 am

Steegy wrote:Yes, I think I can.
I just have to know which node you want to have opened on MM startup.
Is it an album, genre, artist, location, ... node? What's the name of it?

I'll need a structure like...
Code: Select all
Library
   |_ Ordering
        |_ Mood
             |_ Mild
or

Playlists
   |_ MasterPlaylist
        |_ SubPlay1
             |_ BestOf

...if it's complicated node you want.

Cheers
Steegy


opening in the artist node would be brilliant if you could do that steegy.
larebz
 

Postby Steegy on Fri Dec 16, 2005 2:19 am

Hello

I just thought, this might be a useful script, so I made an adaptable one.

I tried to keep it as minimum as possible, that means you will have to go "in the code" to make changes to the startup node you want.


The script will go directly to the Artist node at startup, but you can change that in the Sub onStartup. A short explanation is given in "variables to use".

Cheers
Steegy

For the newer code, please visit:
http://www.mediamonkey.com/forum/viewtopic.php?t=7490


OLD CODE:
Code: Select all
'==========================================================================
'
' MediaMonkey Script
'
' NAME: StartupNode v1.0
' DESCRIPTION:
'  Automaticly opens a specific node when MediaMonkey starts up.
'
' AUTHOR: Steegy aka RC
' DATE  : 15.12.2005
'
' INSTALL:
' - Copy script to MM directory scripts\auto
'
'==========================================================================
Option Explicit
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
' Variable Configuration:
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
'
  Dim sN
  sN = "§$§$§"     'Normally no need to change

'+++++++++++++++++++
' VARIABLES TO USE  >> MAKE CHANGES IN onStartUp
'+++++++++++++++++++

' usage:    ChooseMore(TopNode, PathToNode)


  'TopNode:
  '========
  '
  'These are the TopNodes you can use. The names should be self-explanatory:

  'SDB.MainTree.Node_Artist
  'SDB.MainTree.Node_Album
  'SDB.MainTree.Node_Genre
  'SDB.MainTree.Node_Year
  'SDB.MainTree.Node_Location
  'SDB.MainTree.Node_MyComputer
  'SDB.MainTree.Node_Classification
  'SDB.MainTree.Node_FilesToEdit
  'SDB.MainTree.Node_NowPlaying
  'SDB.MainTree.Node_Playlists
  'SDB.MainTree.Node_Previews
  'SDB.MainTree.Node_Rating
  'SDB.MainTree.Node_VirtualCD
  'SDB.MainTree.Node_Web

  'PathToNode:
  '===========
  'The nodes under the TopNode you have to follow to reach the wanted node. They are split by the sN variable.



'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
' Here's the code (CHANGE THIS PORTION)
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Sub onStartUp

  ChooseMore SDB.MainTree.Node_Artist,""
  'ChooseMore SDB.MainTree.Node_Genre,"Acoustic Soul" & sN & "India.Arie"

End Sub

'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
' No Need To Change The Code Under Here:
'%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

Sub ChooseMore(TopNode, PathToNode)

  Dim MyLocation, i, Node2B

  On Error Resume Next


  MyLocation = Split(PathToNode,sN)

  TopNode.Expanded = True

  i = 0
  Set Node2B = TopNode
  Do While i < UBound(MyLocation)+1
    Set Node2B = SDB.MainTree.FirstChildNode(Node2B)
    If Not Node2B.Caption = MyLocation(i) Then
      Do
        Set Node2B = SDB.MainTree.NextSiblingNode(Node2B)
      Loop While Node2B.Caption <> MyLocation(i)
    End If
    Node2B.Expanded = True
    i = i + 1
  Loop

  SDB.MainTree.CurrentNode = Node2B

  If Err <> 0 Then
    SDB.MessageBox "An error occured while auto-opening the specified node. Possibly, the node specification is incorrect." , mtError, Array(mbOk)
    Exit Sub
  End If

End Sub


Cheers
Steegy
Last edited by Steegy on Fri Mar 31, 2006 11:29 am, edited 1 time in total.
Skinning | Scripting
Not active on the forum anymore... (sorry)
Steegy
 
Posts: 3386
Joined: Sun Nov 06, 2005 12:17 am
Location: Europe > Belgium

Postby Steegy on Fri Dec 16, 2005 2:26 am

@Peke
Do you know something about writing (Winamp) plugins using c# or VB .NET? It seems that everything is still focussed on (native) c++ to do this kind of things, but I don't have the courage to learn that more, since .NET is much easier and more logically.

Why don't you use ScriptType=2 Script which will be executed on every Play and it will save current Tree Pos.


I didn't think of that. It would be a nice workaround, but the problem is when nodes are changed and MM is closed during playback of one song. In that case, the stored "opened node" wouldn't match the latest state.

Cheers
Steegy
Skinning | Scripting
Not active on the forum anymore... (sorry)
Steegy
 
Posts: 3386
Joined: Sun Nov 06, 2005 12:17 am
Location: Europe > Belgium

Postby Peke on Fri Dec 16, 2005 12:13 pm

Steegy,
I code in Delphi. Take a look in SDK it is fairly simple. Three exported Functions and few Variable types defined.
If you do not understand something then ask, I'll be glad to help.
Best regards,
Pavle
MM Plug-in Developer and Fan (MM FanSite)
Image
Image
Peke
 
Posts: 6265
Joined: Wed Jun 11, 2003 12:21 am
Location: Serbia

Postby DranoK on Sun Dec 18, 2005 8:35 am

Steegy, thanks btw. Your script worked perefctly for me.
DranoK
 

Next

Return to Need Help?

Who is online

Users browsing this forum: Alexa [Bot] and 4 guests