Script to open m3u playlist from clipboard?

Download and get help for different MediaMonkey Addons.

Moderators: Peke, Gurus

chrisjj
Posts: 4933
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Script to open m3u playlist from clipboard?

Post by chrisjj » Mon Jan 07, 2013 7:11 am

Does anyone have a script to open the clipboard as a m3u playlist? I.e. Perform the action of "Open URL or file..." but on the clipboard interpreting the contents as the contents of an m3u file.

Thanks.
Chris

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

Re: Script to open m3u playlist from clipboard?

Post by rovingcowboy » Wed Jan 09, 2013 2:11 am

Just change .m3u to .txt its just a text file with extension of .m3u
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. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.

chrisjj
Posts: 4933
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Script to open m3u playlist from clipboard?

Post by chrisjj » Wed Jan 09, 2013 6:39 am

rovingcowboy wrote:Just change .m3u to .txt its just a text file with extension of .m3u
Thanks, RC but there is no text file. The content is on the clipboard.
Chris

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

Re: Script to open m3u playlist from clipboard?

Post by rovingcowboy » Wed Jan 09, 2013 9:02 am

Go in to windows folder and look for clipboard viewer put its icon in quick launch bar or in system tray. Then you could paste it in to notepad. I'm sure windows still has that viewer in it they had it since win 3.0 might be needing you to go to options and set windows to show icons for dll files in order to see the one to get. I believe it is in system 32 folder. No not a dll but its called
( clipbrd.exe ) you can use it then just make shortcut to it so as not to have to go in to folder all the time.
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. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.

chrisjj
Posts: 4933
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Script to open m3u playlist from clipboard?

Post by chrisjj » Wed Jan 09, 2013 9:52 am

rovingcowboy wrote:you could paste it in to notepad.
Yes, I could. That's what I want to avoid.
Chris

Peke
Posts: 12825
Joined: Tue Jun 10, 2003 7:21 pm
Location: Serbia
Contact:

Re: Script to open m3u playlist from clipboard?

Post by Peke » Wed Jan 09, 2013 11:18 pm

Hmmm, from what I remember there is limitations what and when you can access clipboard from app.

Can you be more specific, an detailed example maybe?
Best regards,
Pavle
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
How to add SCREENSHOTS to forum

chrisjj
Posts: 4933
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Script to open m3u playlist from clipboard?

Post by chrisjj » Thu Jan 10, 2013 6:33 am

Peke wrote:Can you be more specific, an detailed example maybe?
1) I have on the clipboard some track references e.g.

Code: Select all

P:\Dance\00094633599727-2-11.wma
P:\Dance\00094637195628-1-15.wma
P:\Dance\00094637195628-1-16.wma
2) In MM I press a shortcut key for a command script

3) The script loads the tracks referenced by the clipboard in to Now Playing, in the same way as "Open URL or File..." loads the the tracks referenced by a .M3U file.
Chris

chrisjj
Posts: 4933
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Script to open m3u playlist from clipboard?

Post by chrisjj » Sat Apr 09, 2016 8:29 am

Anyone, please?
Chris

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

Re: Script to open m3u playlist from clipboard?

Post by rovingcowboy » Mon Apr 11, 2016 5:49 am

chrisjj wrote:Anyone, please?
You still ain't got this?

Um there was a prorgam from bellcraft that would read the clipboard every time something was copied to it and send the data to the msagents voice engine and have it read aloud.
Not sure how he did that but does that help you figure out what to do. ?
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. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.

chrisjj
Posts: 4933
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Script to open m3u playlist from clipboard?

Post by chrisjj » Mon Apr 11, 2016 6:42 am

rovingcowboy wrote:Not sure how he did that but does that help you figure out what to do. ?
Thanks RC, but probably not. AFAICS some MM scripting is required.
Chris

MMuser2011
Posts: 1305
Joined: Mon Oct 17, 2011 8:28 am
Location: Central Europe

Re: Script to open m3u playlist from clipboard?

Post by MMuser2011 » Mon Apr 11, 2016 9:09 am

@chrisjj: How do you get this track reference into the clipboard? (Maybe some other program where you copy them from?)

I ask, because such a program maybe can write the same content to a *.m3u playlist file and you can drag & drop this playlist file into MM?
Magic Nodes v4.3.3 (2018-10-03) last free version SQL Viewer v2.4 (2009-10-25)
ExternalTools v1.4 (2011-05-09) iTunesMonkey 1.0 + Acoustid
Calculate Cover Size v1.7 (2012-10-23) RegExp Find & Replace v4.4.9 (2018-10-03) last free version

chrisjj
Posts: 4933
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Script to open m3u playlist from clipboard?

Post by chrisjj » Mon Apr 11, 2016 9:01 pm

MMuser2011 wrote:@chrisjj: How do you get this track reference into the clipboard? (Maybe some other program where you copy them from?)
CTRL+C in various programs, including Explorer and Notepad.
MMuser2011 wrote:I ask, because such a program maybe can write the same content to a *.m3u playlist file
Sadly not. I currently manually save to a temp *.m3u files and am seeking improvement on this.
Chris

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

Re: Script to open m3u playlist from clipboard?

Post by rovingcowboy » Wed Apr 20, 2016 5:37 pm

can you set up a macro to copy the clipboard and save to m3u file.? 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. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.

chrisjj
Posts: 4933
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Script to open m3u playlist from clipboard?

Post by chrisjj » Wed Apr 20, 2016 5:44 pm

Probably. But I'd still then have to open it in MM.

I'd rather not have to save at all.
Chris

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

Re: Script to open m3u playlist from clipboard?

Post by rovingcowboy » Wed Apr 20, 2016 6:00 pm

dang you just keep adding in wants. :o it'll take some time to figure something out unless peke or lowlander or trixmoto can script something faster. 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. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.

Post Reply