can asong in the 'nowplaying' window be added to the library

Get answers about using MediaMonkey 4 for Windows.

Moderator: Gurus

action123

can asong in the 'nowplaying' window be added to the library

Post by action123 »

can i add a song that is in the nowplaying list to the library in any way??

rightclicking on the song and choosing an option like 'add to library' wud be great .. but i guess there must be some other possibility

or shud i be a part of this thread http://www.mediamonkey.com/forum/viewtopic.php?t=4965 ?
julzcompufreek
Posts: 440
Joined: Mon Jul 05, 2004 5:46 am
Location: Melbourne, Australia
Contact:

Post by julzcompufreek »

Currently there is no "Add to Library" selection (as you can already see).

However, if you right-click on the file in now playing, go to "Send to" - "Folder (Move)" and select the destination you would like to move it to, it will add it to the library as part of the process.

Fiddly, and not quite what you expected I know, but its an option.
Julian aka julzcompufreek
"Dancing is a contact sport; football is a Hitting sport." - Vince Lombardi
Visit My Blog - http://kompufreak.wordpress.com
onkel_enno
Posts: 2156
Joined: Fri Jan 14, 2005 1:45 am
Location: Germany
Contact:

Re: can asong in the 'nowplaying' window be added to the lib

Post by onkel_enno »

action123 wrote:can i add a song that is in the nowplaying list to the library in any way??
Create a file "AddToLibrary.vbs" in MediaMonkey\Scripts\Auto and paste the follwing code into it

Code: Select all

Option Explicit

Sub OnStartUp
dim MenuItem
	
	'Adds Menu-Item To Now Playing
	SDB.UI.AddMenuItemSep SDB.UI.Menu_Pop_NP, 1, 1
	'Adds Menu to Now Playing
	set MenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Pop_NP, 1, 1)
	MenuItem.IconIndex = 37
	MenuItem.Caption = "Add to Library"
	MenuItem.Enabled = True
	MenuItem.UseScript = Script.ScriptPath
	MenuItem.OnClickFunc = "AddToLibrary"
	Set MenuItem = Nothing
	
	'Adds Menu-Item To Track-List
	SDB.UI.AddMenuItemSep SDB.UI.Menu_Pop_TrackList, 1, 1
	'Adds Menu to Now Playing
	set MenuItem = SDB.UI.AddMenuItem(SDB.UI.Menu_Pop_TrackList, 1, 1)
	MenuItem.IconIndex = 37
	MenuItem.Caption = "Add to Library"
	MenuItem.Enabled = True
	MenuItem.UseScript = Script.ScriptPath
	MenuItem.OnClickFunc = "AddToLibrary"
	Set MenuItem = Nothing
end Sub

Sub AddToLibrary(Menu)
Dim TrackList
Dim Track
Dim a

Set Tracklist = SDB.SelectedSongList 
for a=0 to Tracklist.Count-1
	Set Track = Tracklist.Item(a)
	if Track.IsntInDB then Track.UpdateDB
next
End Sub
Restart MM and then there are entries in now-playing-menu and track-list-menu where you can add the selected songs to the library, if they aren't already.

Hope that helps.
Last edited by onkel_enno on Thu Sep 08, 2005 12:42 am, edited 2 times in total.
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

Post by Bex »

onkel_enno!

Many thanks to you. This little feature is something that I will use a lot.

Have a nice day!
action123

greaaat

Post by action123 »

thanks a lot!!

this is perfect

but i seriously wonder why this feature isnt already there in mediamonkey? did someone write this script recently or something?

or some kind of business strategy??
psyXonova
Posts: 785
Joined: Fri May 20, 2005 3:57 am
Location: Nicosia, Cyprus
Contact:

Post by psyXonova »

Oh, come on...
there is no such thing as bussines strategy here...
users keep request thinks and the developers do whatever possible to please them.
I know MM is not perfect but is by far the best sollution available in Music Cataloguing and (quess what) its free!!!!
So please be patient and understanding

EDIT

Well done Ehno!! One more of your beautifull and really practical scripts.
May I suggest to do a thread unders Scipts & Components where all of your scipts will be together along with a small description of them?
That would help a lot of people....
onkel_enno
Posts: 2156
Joined: Fri Jan 14, 2005 1:45 am
Location: Germany
Contact:

Post by onkel_enno »

@psyXonova
Thanks a lot :D

If you want you can create a Thread in Script Forum and link to this Script/Thread.
But please do not create one Thread with all of my Script (if I understood correctly) - that could be confusing I think.

Enno
syggersen

Does this nice dragndrop to library script ...

Post by syggersen »

Does this nice dragndrop to library script ... work with version 2.5.3.968.
I couldn't get it to work :-/
trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto »

It's not drag&drop - you right click on the song in Now Playing and select "Add To Library" from the context menu.
Download my scripts at my own MediaMonkey fansite.
All the code for my website and scripts is safely backed up immediately and for free using Dropbox.
Guest

Post by Guest »

trixmoto wrote:It's not drag&drop - you right click on the song in Now Playing and select "Add To Library" from the context menu.
Ah yes thanks a lot, i wrongfully rightclicked the files above the "now playing" (when u press F6).
syggersen

Post by syggersen »

trixmoto wrote:It's not drag&drop - you right click on the song in Now Playing and select "Add To Library" from the context menu.
...it seems though - that even if i rightclick and select "add to library", it does not seem to be added to the library - in the latest version of mediamonkey that is.
matthew
Posts: 5
Joined: Thu May 31, 2007 10:27 pm

Post by matthew »

I am new to Media Monkey, only my third day. How do you create a skript? I dont know how to: Create a file "AddToLibrary.vbs" in MediaMonkey\Scripts\Auto and paste the follwing code into it "
nohitter151
Posts: 23640
Joined: Wed Aug 09, 2006 10:20 am
Location: NJ, USA
Contact:

Post by nohitter151 »

matthew wrote:I am new to Media Monkey, only my third day. How do you create a skript? I dont know how to: Create a file "AddToLibrary.vbs" in MediaMonkey\Scripts\Auto and paste the follwing code into it "
Open notepad (Start -> Programs -> Accessories -> Notepad).
Copy the green text above.
Paste into notepad.
Save as AddToLibrary.vbs in the C:\Program Files\MediaMonkey\Scripts\Auto folder.
Close notepad, restart MediaMonkey (or open it).

The AddToLibrary option should be available. If not, go to the MediaMonkey\Scripts\Auto folder and make sure it is AddToLibrary.vbs and not AddToLibrary.vbs.txt. You can verify by going to Tools -> folder options -> View, then uncheck hide extensions for known file types.
MediaMonkey user since 2006
Need help? Got a suggestion? Can't find something?

Please no PMs in reply to a post. Just reply in the thread.
gregmasciola
Posts: 34
Joined: Mon Jun 25, 2007 7:56 pm

Re: can asong in the 'nowplaying' window be added to the lib

Post by gregmasciola »

Thank you so much for this cool feature! It saves me so much time; it seems like now every time that I click file>add to library, the screen turns white for almost 20 minutes before it actually lets me select the folders to add. This feature lets me add songs instantly. :D
gggirlgeek
Posts: 67
Joined: Mon Feb 11, 2008 4:24 pm
Location: Seattle, WA

Re: can asong in the 'nowplaying' window be added to the lib

Post by gggirlgeek »

Doesn't seem to be working. (MediaMonkey 4) The file does not show up using the script's right click option (tried it from the My Computer node on several file types including video and audio.) I searched the "Entire Library" node but no luck.

Also, the "Add to Library" option does not show up in the "Now Playing" node opened in a tab. It does show up in the "Now Playing" view pane though. (I don't use the view pane. Saves screen real estate.)

I wonder why the Devs have not added this to Mediamonkey yet. I particularly want the option to add the files from Explorer (right click or drag-n-drop.) It'd also be nice if files were added automatically when played (with an option to turn it off.) It is a pain to surf down through the tree for files that are outside of my monitored folders. I use a quick search utility to find them in Explorer. Takes 2 seconds.

Basically any one of these features would make life more simple. I'll try and see about it in Feature Requests.
My current favorite software: MediaMonkey Gold!
Post Reply