Microsoft KB Archive/146901

{|
 * width="100%"|

How to Play a .AVI Video File in Full Screen in Word

 * }

Q146901

-

The information in this article applies to:


 * Microsoft Word for Windows, versions 6.0, 6.0a, 6.0c
 * Microsoft Word for Windows NT, version 6.0
 * Microsoft Word for Windows, version 7.0

-

SUMMARY
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.

Using Microsoft Windows 95 and Word 7.0
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

Using Microsoft Windows version 3.1
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.

MORE INFORMATION
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 :