Page 1 of 2

Script to open m3u playlist from clipboard?

Posted: Mon Jan 07, 2013 7:11 am
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.

Re: Script to open m3u playlist from clipboard?

Posted: Wed Jan 09, 2013 2:11 am
by rovingcowboy
Just change .m3u to .txt its just a text file with extension of .m3u

Re: Script to open m3u playlist from clipboard?

Posted: Wed Jan 09, 2013 6:39 am
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.

Re: Script to open m3u playlist from clipboard?

Posted: Wed Jan 09, 2013 9:02 am
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.

Re: Script to open m3u playlist from clipboard?

Posted: Wed Jan 09, 2013 9:52 am
by chrisjj
rovingcowboy wrote:you could paste it in to notepad.
Yes, I could. That's what I want to avoid.

Re: Script to open m3u playlist from clipboard?

Posted: Wed Jan 09, 2013 11:18 pm
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?

Re: Script to open m3u playlist from clipboard?

Posted: Thu Jan 10, 2013 6:33 am
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.

Re: Script to open m3u playlist from clipboard?

Posted: Sat Apr 09, 2016 8:29 am
by chrisjj
Anyone, please?

Re: Script to open m3u playlist from clipboard?

Posted: Mon Apr 11, 2016 5:49 am
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. ?

Re: Script to open m3u playlist from clipboard?

Posted: Mon Apr 11, 2016 6:42 am
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.

Re: Script to open m3u playlist from clipboard?

Posted: Mon Apr 11, 2016 9:09 am
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?

Re: Script to open m3u playlist from clipboard?

Posted: Mon Apr 11, 2016 9:01 pm
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.

Re: Script to open m3u playlist from clipboard?

Posted: Wed Apr 20, 2016 5:37 pm
by rovingcowboy
can you set up a macro to copy the clipboard and save to m3u file.? 8)

Re: Script to open m3u playlist from clipboard?

Posted: Wed Apr 20, 2016 5:44 pm
by chrisjj
Probably. But I'd still then have to open it in MM.

I'd rather not have to save at all.

Re: Script to open m3u playlist from clipboard?

Posted: Wed Apr 20, 2016 6:00 pm
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)