Playing a MP3 file?

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
EnderFFX
Pro Scripter
Posts: 92
Joined: Mon Mar 08, 2004 6:17 am

Playing a MP3 file?

Post by EnderFFX » Mon Apr 11, 2011 2:28 pm

I know there is a playwav command, and I believe there is no playmp3 command. I've been doing some research and am considering using DirectShow, which is part of DirectX.

Any ideas? Anyone attempted this or thought to attempt this?

User avatar
Marcus Tettmar
Site Admin
Posts: 7395
Joined: Thu Sep 19, 2002 3:00 pm
Location: Dorset, UK
Contact:

Post by Marcus Tettmar » Mon Apr 11, 2011 3:39 pm

One way is to use this free player which can be used via the command line:

http://www.spacejock.com/yPlay.html

Then the following code will run it hidden:

Code: Select all

Let>file=c:\bla\bla\mysound.mp3
Let>RP_WAIT=2
Run>C:\Users\User\Documents\yPlay\yplay.exe "%file%" --hide --exit
Marcus Tettmar
http://mjtnet.com/blog/ | http://twitter.com/marcustettmar

Did you know we are now offering affordable monthly subscriptions for Macro Scheduler Standard?

EnderFFX
Pro Scripter
Posts: 92
Joined: Mon Mar 08, 2004 6:17 am

Post by EnderFFX » Mon Apr 11, 2011 5:11 pm

mtettmar wrote:One way is to use this free player which can be used via the command line:

http://www.spacejock.com/yPlay.html

Then the following code will run it hidden:

Code: Select all

Let>file=c:\bla\bla\mysound.mp3
Let>RP_WAIT=2
Run>C:\Users\User\Documents\yPlay\yplay.exe "%file%" --hide --exit
That is a cool little solution. I may have to try it out! Thank you!

Post Reply
Sign up to our newsletter for free automation tips, tricks & discounts