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

Download and get help for different MediaMonkey for Windows 4 Addons.

Moderators: Peke, Gurus

onenonymous
Posts: 374
Joined: Sat Feb 02, 2008 1:09 pm
Location: Texas

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

Post 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
Last edited by onenonymous on Sun Sep 07, 2008 3:05 pm, edited 1 time in total.
Bex
Posts: 6316
Joined: Fri May 21, 2004 5:44 am
Location: Sweden

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

Post 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? :)
Advanced Duplicate Find & Fix Find More From Same - Custom Search. | Transfer PlayStat & Copy-Paste Tags/AlbumArt between any tracks.
Tagging Inconsistencies Do you think you have your tags in order? Think again...
Play History & Stats Node Like having your Last-FM account stored locally, but more advanced.
Case & Leading Zero Fixer Works on filenames too!

All My Scripts
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

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

Post 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
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
MusicBringer
Posts: 622
Joined: Wed Oct 25, 2006 12:53 pm

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

Post 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)
MediaMonkey user since 2006
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

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

Post by nynaevelan »

Change line 20 from TbEdit to TbSearch

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
onenonymous
Posts: 374
Joined: Sat Feb 02, 2008 1:09 pm
Location: Texas

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

Post 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.
MusicBringer
Posts: 622
Joined: Wed Oct 25, 2006 12:53 pm

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

Post 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 :(
MediaMonkey user since 2006
MusicBringer
Posts: 622
Joined: Wed Oct 25, 2006 12:53 pm

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

Post 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 :)
MediaMonkey user since 2006
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

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

Post 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
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
onenonymous
Posts: 374
Joined: Sat Feb 02, 2008 1:09 pm
Location: Texas

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

Post 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... :-?
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

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

Post 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
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
MusicBringer
Posts: 622
Joined: Wed Oct 25, 2006 12:53 pm

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

Post 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,
MediaMonkey user since 2006
nynaevelan
Posts: 5559
Joined: Wed Feb 07, 2007 11:07 pm
Location: New Jersey, USA
Contact:

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

Post by nynaevelan »

I'm glad I could give back!!!! :D :D

Nyn
3.2x - Win7 Ultimate (Zen Touch 2 16 GB/Zen 8GB)
Link to Favorite Scripts/Skins

Join Dropbox, the online site to share your files
MusicBringer
Posts: 622
Joined: Wed Oct 25, 2006 12:53 pm

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

Post by MusicBringer »

I'll look at the other ideas and suggestions tomorrow. It's a bit late now.
Nite, nite, :)
MediaMonkey user since 2006
rovingcowboy
Posts: 14163
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

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

Post 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)
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 A51 5G Android ) 6. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.
Post Reply