Simple Bookmark Script v2.00 [Script]

Post a reply

Smilies
:D :) :( :o :-? 8) :lol: :x :P :oops: :cry: :evil: :roll: :wink:

BBCode is ON
[img] is ON
[url] is ON
Smilies are ON

Topic review
   

Expand view Topic review: Simple Bookmark Script v2.00 [Script]

Re: Simple Bookmark Script v2.00 [Script]

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

I thought MM3 handled bookmarking of audiobooks and podcasts natively?

Re: Simple Bookmark Script v2.00 [Script]

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

Re: Simple Bookmark Script v2.00 [Script]

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.

Re: Simple Bookmark Script v2.00 [Script]

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

Re: Simple Bookmark Script v2.00 [Script]

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

alright... I can see that :)

maybe trixmoto reads this... we'll see

Re: Simple Bookmark Script v2.00 [Script]

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

Re: Simple Bookmark Script v2.00 [Script]

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

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.

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)

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..

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)

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.

Simple Bookmark Script v2.00 [Script]

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

Top