How to play MP3 file when document opens 
Author Message
 How to play MP3 file when document opens

What macro command would I write to start an MP3 file when
a document opens?


Thu, 04 Nov 2004 12:35:14 GMT  
 How to play MP3 file when document opens

Quote:

> What macro command would I write to start an MP3 file when
> a document opens?

If you want the Mp3-file to be embedded in your document, you should
insert it as an media object, and then make a macro named AutoOpen. In
the macro, type:

ActiveDocument.InlineShapes(1).Activate

This assumes the Mp3-file is the only object in your file, though. If
you have other objects, try to find out which number your mp3-file is,
and replace 1 with that number.

If you want to play an Mp3-file which is located somewhere else, you
can simply do this by opening it in your favourite mp3-player with the
following command:

Shell "C:\Program Files\Windows Media Player\mplayer2.exe
C:\mp3\MyMp3.mp3"

This will open media player and play your file.

Magne



Thu, 04 Nov 2004 19:38:13 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. How to Auto play a MIDI file when document opens

2. Win APIs to play mpg video files, mp3 audio files and audio cds

3. Help i need an Mp3 control that plays mp3's

4. playing mp3-files

5. how to play mp3 files?

6. How to play MP3 file ?

7. How can you play wave or mp3 files ?

8. How can you play wave/mp3 files ?

9. Win API call to play MP3 audio files

10. Playing mp3 files....

11. How to play a MP3 File from a VB-Program

12. Play MP3 files ?

 

 
Powered by phpBB® Forum Software