Script to open m3u playlist from clipboard?

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

Moderators: Peke, Gurus

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

Script to open m3u playlist from clipboard?

Post by chrisjj »

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: 14163
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Re: Script to open m3u playlist from clipboard?

Post by rovingcowboy »

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 A51 5G Android ) 6. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Script to open m3u playlist from clipboard?

Post by chrisjj »

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: 14163
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Re: Script to open m3u playlist from clipboard?

Post by rovingcowboy »

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 A51 5G Android ) 6. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Script to open m3u playlist from clipboard?

Post by chrisjj »

rovingcowboy wrote:you could paste it in to notepad.
Yes, I could. That's what I want to avoid.
Chris
Peke
Posts: 17457
Joined: Tue Jun 10, 2003 7:21 pm
Location: Earth
Contact:

Re: Script to open m3u playlist from clipboard?

Post by Peke »

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,
Peke
MediaMonkey Team lead QA/Tech Support guru
Admin of Free MediaMonkey addon Site HappyMonkeying
Image
Image
Image
How to attach PICTURE/SCREENSHOTS to forum posts
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Script to open m3u playlist from clipboard?

Post by chrisjj »

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: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Script to open m3u playlist from clipboard?

Post by chrisjj »

Anyone, please?
Chris
rovingcowboy
Posts: 14163
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Re: Script to open m3u playlist from clipboard?

Post by rovingcowboy »

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 A51 5G Android ) 6. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Script to open m3u playlist from clipboard?

Post by chrisjj »

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: 1308
Joined: Mon Oct 17, 2011 8:28 am
Location: Central Europe

Re: Script to open m3u playlist from clipboard?

Post by MMuser2011 »

@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: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Script to open m3u playlist from clipboard?

Post by chrisjj »

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: 14163
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Re: Script to open m3u playlist from clipboard?

Post by rovingcowboy »

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 A51 5G Android ) 6. amd a8-5600 apu 3.60ghz mm version 4 windows 7 pro bought from computer store.
chrisjj
Posts: 5007
Joined: Wed Feb 14, 2007 5:14 pm
Location: UK

Re: Script to open m3u playlist from clipboard?

Post by chrisjj »

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

I'd rather not have to save at all.
Chris
rovingcowboy
Posts: 14163
Joined: Sat Oct 25, 2003 7:57 am
Location: (Texas)
Contact:

Re: Script to open m3u playlist from clipboard?

Post by rovingcowboy »

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