Page 1 of 2

Clear Now Playing Button 1.2 (2008-09-07) [MM3]

Posted: Sun Aug 24, 2008 9:35 am
by onenonymous
As requested here, this script adds a button to the Edit toolbar and a "Clear" menu item to the Now Playing window main menu to give one-click clear of items in Now Playing.

Version 1.2 Update September 7, 2008 - Download the installer
-Added code requested hereto:
  • 1. Clear all but playing track
    2. Clear all above playing track
    3. Clear all below playing track
-Added menu items to Clear list in Right Click for the two Now Playing Pop-Up menus and the Now Playing panel's List Menu
-Added compatibility with Right Click For Scripts so you can use it to put buttons or menus where ever else you want

Version 1.0 August 25, 2008 Download the installer

Re: Clear Now Playing Button 1.0 (2008-08-25) [MM3]

Posted: Sun Aug 24, 2008 10:28 am
by Bex
Great!
Since you have figured out how this works I have a request. I would like to have the functions below added to the Right click menu of NP:
1. Clear all but playing track
2. Clear all above playing track
3. Clear all below playing track

That would be great, wouldn't it? :)

Re: Clear Now Playing Button 1.0 (2008-08-25) [MM3]

Posted: Sun Aug 24, 2008 12:34 pm
by nynaevelan
Bex wrote:Great!
Since you have figured out how this works I have a request. I would like to have the functions below added to the Right click menu of NP:
1. Clear all but playing track
2. Clear all above playing track
3. Clear all below playing track

That would be great, wouldn't it? :)
I second my request for these functions.... and I don't know what the difference is, if there is any, but I would like these three available from the Now Playing List.

PS: I had to change it to the Standard toolbar because I don't use the Edit toolbar. :wink:

Nyn

Re: Clear Now Playing Button 1.0 (2008-08-25) [MM3]

Posted: Sun Aug 24, 2008 5:09 pm
by MusicBringer
nynaevelan wrote:PS: I had to change it to the Standard toolbar because I don't use the Edit toolbar. :wink: Nyn
Hello Nyn, like you I don't use the Edit toolbar.
Umm, for that matter I don't use the Standard toolbar either.
I just have the Search toolbar at the top of the screen.

And loading MM3 is taking ages, coz I have 150+ tracks in my Now Playing list when it closes.
I would love to have that Clear Now Playing button up there.
Any ideas how that can be achieved....or is it going to be put on the heading of the Now Playing window 8)

Re: Clear Now Playing Button 1.0 (2008-08-25) [MM3]

Posted: Sun Aug 24, 2008 5:13 pm
by nynaevelan
Change line 20 from TbEdit to TbSearch

Nyn

Re: Clear Now Playing Button 1.0 (2008-08-25) [MM3]

Posted: Sun Aug 24, 2008 5:22 pm
by onenonymous
Change this line:

Code: Select all

Set butObj = SDB.UI.AddMenuItem(SDB.UI.Menu_TbEdit,-1,-1)
to this for Search toolbar:

Code: Select all

Set butObj = SDB.UI.AddMenuItem(SDB.UI.Menu_TbSearch,-1,-1)
or this for Standard Toolbar:

Code: Select all

Set butObj = SDB.UI.AddMenuItem(SDB.UI.Menu_TbStandard,-1,-1)
also, you might want to check out Trix's Clear Now Playing Script- it will clear the NP on startup.

Re: Clear Now Playing Button 1.0 (2008-08-25) [MM3]

Posted: Sun Aug 24, 2008 5:32 pm
by MusicBringer
onenonymous wrote:also, you might want to check out Trix's Clear Now Playing Script- it will clear the NP on startup.
Thanks for the tip onenonymous. I have Trix's script installed but it fails to clear my Now Playing list.
Dunno why it don't work for me :(

Re: Clear Now Playing Button 1.0 (2008-08-25) [MM3]

Posted: Sun Aug 24, 2008 5:36 pm
by MusicBringer
nynaevelan wrote:Change line 20 from TbEdit to TbSearch

Nyn
Thanks Nyn, I don't know anything about scripting.
What program do you suggest I use to open and edit the mmip file to change line 20.
I opened it in a txt editor (notepad++) but there were only 14 rows :)

Re: Clear Now Playing Button 1.0 (2008-08-25) [MM3]

Posted: Sun Aug 24, 2008 5:37 pm
by nynaevelan
MusicBringer wrote:
nynaevelan wrote:Change line 20 from TbEdit to TbSearch

Nyn
Thanks Nyn, I don't know anything about scripting.
What program do you suggest I use to open and edit the mmip file to change line 20.
I opened it in a txt editor (notepad++) but there were only 14 rows :)
You're on the right path but wrong file. You want to edit the ClearNowPlayingButton.vbs file in the Scripts\Auto folder. :wink:

Nyn

Re: Clear Now Playing Button 1.0 (2008-08-25) [MM3]

Posted: Sun Aug 24, 2008 5:39 pm
by onenonymous
if you want to force clear the Now Playing list on each restart, add the following in the OnStartup procedure (e.g. it should be the next line after 'Sub OnStartup'

Code: Select all

  SDB.Player.PlaylistClear
you might also want to post your problem in the Clear Now Playing Script thread, there's probably and easy answer... :-?

Re: Clear Now Playing Button 1.0 (2008-08-25) [MM3]

Posted: Sun Aug 24, 2008 5:40 pm
by nynaevelan
MusicBringer wrote:
onenonymous wrote:also, you might want to check out Trix's Clear Now Playing Script- it will clear the NP on startup.
Thanks for the tip onenonymous. I have Trix's script installed but it fails to clear my Now Playing list.
Dunno why it don't work for me :(
Did you edit the ClearNowPlaying.vbs file to suit your needs? This section here:

Code: Select all

limit = 100		'maximum number of songs to leave in now playing

clearall = 0 		'set to 1 if you wish to clear all files
clearplayed = 1 	'set to 1 if you wish to clear just those before the current
clearextra = 0		'set to 1 if you wish to clear all but the first (limit) songs
'NB. Only one of these options can be set to 1, the rest must be 0
Nyn

Re: Clear Now Playing Button 1.0 (2008-08-25) [MM3]

Posted: Sun Aug 24, 2008 5:42 pm
by MusicBringer
nynaevelan wrote:
MusicBringer wrote:
nynaevelan wrote:Change line 20 from TbEdit to TbSearch

Nyn
Thanks Nyn, I don't know anything about scripting.
What program do you suggest I use to open and edit the mmip file to change line 20.
I opened it in a txt editor (notepad++) but there were only 14 rows :)
You're on the right path but wrong file. You want to edit the ClearNowPlayingButton.vbs file in the Scripts\Auto folder. :wink:

Nyn
Nyn, you're wonderful..!! I did what you said. And it works. Hooray..!! :lol: :P :lol:
Thanks,

Re: Clear Now Playing Button 1.0 (2008-08-25) [MM3]

Posted: Sun Aug 24, 2008 5:43 pm
by nynaevelan
I'm glad I could give back!!!! :D :D

Nyn

Re: Clear Now Playing Button 1.0 (2008-08-25) [MM3]

Posted: Sun Aug 24, 2008 5:45 pm
by MusicBringer
I'll look at the other ideas and suggestions tomorrow. It's a bit late now.
Nite, nite, :)

Re: Clear Now Playing Button 1.0 (2008-08-25) [MM3]

Posted: Sun Aug 24, 2008 10:52 pm
by rovingcowboy
nynaevelan wrote:I'm glad I could give back!!!! :D :D

Nyn

it's a pleasure to see your name in a post here in the forum so even if you have questions you ARE giving back to the forum. :D

8)