Simple Bookmark Script v2.00 [Script]

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

DiddeLeeDoo
Posts: 1017
Joined: Wed Mar 01, 2006 1:09 am
Location: In a jungle down under
Contact:

Simple Bookmark Script v2.00 [Script]

Post by DiddeLeeDoo » Fri Aug 04, 2006 7:21 am

A very simple Bookmark script.

Adds a 'Bookmark' item in the Play menu

The bookmarked song will be placed in a playlist called Bookmarks.

When a bookmark is used, it will be forgotten, and needs to be set again if you want to set it again for the same song.

To find bookmarked songs, simply go to the playlist Bookmarks, start playing the song, and go to the menu Player and hit the ticked 'Bookmark'

Might put the bookmarked songs into a sub menu instead of playlist later, as this script will not work so well if you already have a playlist called Bookmarks.

Changelog:
1.12 - 1.20 : A bit more tidy
1.20 - 2.00 : Bookmarked songs get collected in a Playlist called Bookmarks

Code: Select all

'-------------------------------------------------------------------
' \Program Files\MediaMonkey\Scripts\Auto\PlayMenu_Bookmarks.vbs
'
' Version 2.00
' 20 October 2006
' By DiddeLeeDoo
'-------------------------------------------------------------------
Private Const B="Bookmarks"
Sub OnStartup
Set BMK=SDB.UI.AddMenuItem(SDB.UI.Menu_Play,4,2)
    BMK.Caption=SDB.Localize("Bookmark")
    BMK.UseScript=Script.ScriptPath
    BMK.OnClickFunc="MenuSwitch"
    SDB.Objects(B)=BMK
Script.RegisterEvent SDB, "OnPlay", "IsBookMarked"
End Sub

Sub IsBookMarked
    SID=SDB.Player.CurrentSong.ID
    FID=SDB.Tools.IniFileByPath(SDB.ApplicationPath &B&".dat").BoolValue(B,SID)
    SDB.Objects(B).Checked=FID
End Sub

Sub MenuSwitch(BMK)
    Set FID=SDB.Tools.IniFileByPath(SDB.ApplicationPath &B&".dat")
        SID=SDB.Player.CurrentSong.ID
     If SDB.Objects(B).Checked Then
     If Not SDB.Player.isPlaying Then SDB.Player.Play
        TIM=FID.IntValue(B,SID)
        SDB.Player.Playbacktime=TIM
        FID.DeleteKey B,SID
        SDB.Objects(B).Checked=False
     Else
        FID.IntValue(B,SID)=SDB.Player.Playbacktime
        SDB.Objects(B).Checked=True
     End If
    Set PLS=SDB.PlaylistByTitle("").CreateChildPlaylist(B)
        PLS.Clear
    Set KYS=FID.Keys(B)
        For i=0 To KYS.Count-1
            SID=KYS.Item(i)
            SID=Left(SID,InStr(SID,"=")-1)
            PLS.AddTrackByID(SID)
        Next
    Set FID=Nothing
    Set PLS=Nothing
    Set KYS=Nothing
End Sub
Last edited by DiddeLeeDoo on Fri Oct 20, 2006 3:01 am, edited 4 times in total.
Image

DiddeLeeDoo
Posts: 1017
Joined: Wed Mar 01, 2006 1:09 am
Location: In a jungle down under
Contact:

Post by DiddeLeeDoo » Fri Oct 20, 2006 2:20 am

Bump to say I added a playlist to this simple script. When a song get bookmarked, it now also get placed into a playlist called Bookmarks.
Image

rovingcowboy
Posts: 14153
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Post by rovingcowboy » Fri Oct 20, 2006 2:58 am

please tell me what use is bookmarks for music?

i know they are good for skipping down sections of long html pages.

but i have no idea what they are for in music? :-? 8)
roving cowboy / keith hall. My skins http://www.mediamonkey.com/forum/viewto ... =9&t=16724 for some help check on Monkey's helpful messages at http://www.mediamonkey.com/forum/viewto ... 4008#44008 MY SYSTEMS.1.Jukebox WinXp pro sp 3 version 3.5 gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 2.WinXP pro sp3, vers 2.5.5 and vers 3.5 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.Dell demension, winxp pro sp3, mm3.5 spare jukebox.) 4.WinXp pro sp3, vers 3.5, dad's computer bought from computer store. )5. Samsung Galaxy 5 Android 5) 6. Proscan tablet Android 4.3 ) 7. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.

DiddeLeeDoo
Posts: 1017
Joined: Wed Mar 01, 2006 1:09 am
Location: In a jungle down under
Contact:

Post by DiddeLeeDoo » Fri Oct 20, 2006 3:35 am

Naa, I guess it's pretty useless, but then again, it's nice to do useless things at the end of a working week. No 'stress' sort of thing.

I have a few Audio Books, that I haven't listened to yet, but this way I can at least bookmark them.

Sitting here fiddling with this script like it should be leisure time crosswords..
Image

junglemonkey

Post by junglemonkey » Fri Oct 20, 2006 3:56 am

oh okay i see it is for audio books.

that makes sense they would need an bookmark also.

i know what they are for now i just did not understand how to use it with sound?

thanks. 8)

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Post by trixmoto » Fri Oct 20, 2006 4:00 am

Also if you have a favourite part of a song, it can be handy to find that bit.
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.

Peng

Re: Simple Bookmark Script v2.00 [Script]

Post by Peng » Mon Feb 01, 2010 8:50 am

hej,

1. is there any download option i missed out?
Or do I have to take the code and write it myself? (No idea, how to do that, but anyway)

2. Does that script handle the position inside of a whole album? So, saying I'm listening to an audiobook with hundreds of small tracks, than I stop and listen some music and then want to go back and continue my audiobook a couple of days later?

Because "trixmoto"'s script doesnt seem to do that, in my player it doesnt add the following tracks of the album when I resume to the bookmark.


Cheers, would be a great script then
Peng

rovingcowboy
Posts: 14153
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Re: Simple Bookmark Script v2.00 [Script]

Post by rovingcowboy » Mon Feb 01, 2010 9:04 am

i'm not sure if this will work in mm 3.2 it was done for use in mm 2. so the code might need updated. if trixmoto has one for mm 3.2 then i'd see if he can add the feature in to his.

unless you are using mm 2.5.

but diddeleedoo has not been in the forum for almost 2 years now. so asking for him to update his script is more or less like asking a blindman for directions. :D
roving cowboy / keith hall. My skins http://www.mediamonkey.com/forum/viewto ... =9&t=16724 for some help check on Monkey's helpful messages at http://www.mediamonkey.com/forum/viewto ... 4008#44008 MY SYSTEMS.1.Jukebox WinXp pro sp 3 version 3.5 gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 2.WinXP pro sp3, vers 2.5.5 and vers 3.5 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.Dell demension, winxp pro sp3, mm3.5 spare jukebox.) 4.WinXp pro sp3, vers 3.5, dad's computer bought from computer store. )5. Samsung Galaxy 5 Android 5) 6. Proscan tablet Android 4.3 ) 7. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.

Peng

Re: Simple Bookmark Script v2.00 [Script]

Post by Peng » Mon Feb 01, 2010 9:17 am

alright... I can see that :)

maybe trixmoto reads this... we'll see

rovingcowboy
Posts: 14153
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Re: Simple Bookmark Script v2.00 [Script]

Post by rovingcowboy » Mon Feb 01, 2010 9:19 am

diddeleedoo just logged in i see him listed as beingin the forum so maybe he will fix this for you.

i'm glad he came back in while i was here to see he logged in i missed his posts and his scripting skills. :D
roving cowboy / keith hall. My skins http://www.mediamonkey.com/forum/viewto ... =9&t=16724 for some help check on Monkey's helpful messages at http://www.mediamonkey.com/forum/viewto ... 4008#44008 MY SYSTEMS.1.Jukebox WinXp pro sp 3 version 3.5 gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 2.WinXP pro sp3, vers 2.5.5 and vers 3.5 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.Dell demension, winxp pro sp3, mm3.5 spare jukebox.) 4.WinXp pro sp3, vers 3.5, dad's computer bought from computer store. )5. Samsung Galaxy 5 Android 5) 6. Proscan tablet Android 4.3 ) 7. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.

DiddeLeeDoo
Posts: 1017
Joined: Wed Mar 01, 2006 1:09 am
Location: In a jungle down under
Contact:

Re: Simple Bookmark Script v2.00 [Script]

Post by DiddeLeeDoo » Mon Feb 01, 2010 9:29 am

Hi rovingcowboy!

Not quite dead yet! Still busy doing online work, and currently live in sunny Thailand. Work make me sit by the computer enough hours of the day, and whatever free time I got is enjoyed away from the computer.

Still use a portable MM2.5 on an external USB drive. Haven't got into the MM 3.x area yet, so I'm basically dead MM wise. If anyone have time do the scripts MM3 compatible, why not just copy the code and play with it, till it works. It's good fun doing MM scripting, and I miss doing it from time to time. Late evening activities is more of the 'healthy sort' for me these days, away from the chair.

Hope you're well.
Image

rovingcowboy
Posts: 14153
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Re: Simple Bookmark Script v2.00 [Script]

Post by rovingcowboy » Mon Feb 01, 2010 9:47 am

yep i'm well only missing your scirpting but i know you're busy, i just am glad your still around, um? moved to a different country all togther there so i see. must have got a lot of money in a promotion at work to move from the land down under. watch out for them earth shakings that have been going on over there. pop back in the forum when you can we still remember you here. :D
roving cowboy / keith hall. My skins http://www.mediamonkey.com/forum/viewto ... =9&t=16724 for some help check on Monkey's helpful messages at http://www.mediamonkey.com/forum/viewto ... 4008#44008 MY SYSTEMS.1.Jukebox WinXp pro sp 3 version 3.5 gigabyte mb. 281 GHz amd athlon x2 240 built by me.) 2.WinXP pro sp3, vers 2.5.5 and vers 3.5 backup storage, shuttle 32a mb,734 MHz amd athlon put together by me.) 3.Dell demension, winxp pro sp3, mm3.5 spare jukebox.) 4.WinXp pro sp3, vers 3.5, dad's computer bought from computer store. )5. Samsung Galaxy 5 Android 5) 6. Proscan tablet Android 4.3 ) 7. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.

trixmoto
Posts: 10024
Joined: Fri Aug 26, 2005 3:28 am
Location: Hull, UK
Contact:

Re: Simple Bookmark Script v2.00 [Script]

Post by trixmoto » Mon Feb 01, 2010 12:54 pm

I thought MM3 handled bookmarking of audiobooks and podcasts natively?
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.

Post Reply