Embed / Import Audio File

Technical support and scripting issues

Moderators: JRL, Dorian (MJT support)

Post Reply
arobin4
Junior Coder
Posts: 33
Joined: Sat Apr 07, 2012 5:41 am

Embed / Import Audio File

Post by arobin4 » Tue May 15, 2012 8:21 pm

Hi Forum,
Can an audio file be embedded/imported and used in a macro script - the same way an image (BMP) can?

Thanks

User avatar
JRL
Automation Wizard
Posts: 3532
Joined: Mon Jan 10, 2005 6:22 pm
Location: Iowa

Post by JRL » Tue May 15, 2012 10:48 pm

Any file of any type can be imported using the "Import Binary File" tool. One issue might be size, because you have to use the tool inside the editor and the editor doesn't like really big files.

Once you have the file imported , write it to disk using ExportData> then play the file using whatever application you have available. Macro Scheduler can play a WAV file using the PlayWav> function.

arobin4
Junior Coder
Posts: 33
Joined: Sat Apr 07, 2012 5:41 am

Post by arobin4 » Wed May 16, 2012 12:33 am

JRL,
Thanks!

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