How to Play a .AVI Video File in Full Screen in Word |
Q146901
This article provides a sample WordBasic macro that plays an AVI file
before it processes the next line of code.
NOTE: Your computer must be able to play AVI files for this macro to work.
Declare Function mciSendStringA Lib "winmm" (lpstrCommand$,
lpstrReturnString$, wReturnLength As Long, hWndCallback As Long) As
Long
Sub MAIN
cmdStr$ = "play c:\snwboard.avi fullscreen"
mciSendStringA(cmdStr$, "", 0, 0)
End Sub
Declare Function mciSendString Lib "mmsystem.dll" (lpstrCommand$,
lpstrReturnString$, wReturnLength As Integer, hWndCallback As Integer)
As Integer
Sub MAIN
cmdStr$ = "play c:\snwboard.avi fullscreen"
mciSendString(cmdStr$, "", 0, 0)
End Sub
WARNING: ANY USE BY YOU OF THE CODE PROVIDED IN THIS ARTICLE IS AT YOUR
OWN RISK. Microsoft provides this macro code "as is" without warranty
of any kind, either express or implied, including but not limited to the
implied warranties of merchantability and/or fitness for a particular
purpose.
For additional information, please see the following articles in the Microsoft Knowledge Base:
Q104123 VB 3: How to Play an .AVI Video File in Full Screen
Q89316 Word: How to Play a .WAV Sound File from Word for Windows
Additional query words: 7.0 6.0 winword ntword word95 word7 audio-visual audio visual movie
Keywords : kbmacro kbofficeprog
Issue type :
Technology :
|
Last Reviewed: April 14, 2000 © 2001 Microsoft Corporation. All rights reserved. Terms of Use. |