Article ID: 131819
Article Last Modified on 10/30/2003
98769 Playing an .AVI File with the MCITEST Example
Sub Timer1_Timer ()
Dim MyStr As String
MyStr = "Testing Testing" ''String you want to display
picture1.CurrentX = 10
picture1.CurrentY = 10
picture1.Print MyStr$
End Sub
' Play the movie into the picture control.
On Error GoTo MCI_ERROR
mmcontrol1.Command = "Play"
Change to:
' Play the movie into the picture control.
On Error GoTo MCI_ERROR
Timer1.Interval = 50 ''This number is the refresh rate
mmcontrol1.Command = "Play"98769 Playing an .AVI File with the MCITEST Example
Sub Timer1_Timer ()
Dim RetVal As Integer ''The return value of TextOut - Ignored.
Dim xPos As Integer, yPos As Integer
Dim MyStr As String, MyLen As Integer
xPos = 10 ''x coordinate where you want the text to display
yPos = 10 ''y coordinate where you want the text to display
MyStr = "Testing Testing" ''String you want to display
MyLen = Len(MyStr) ''Length of string
'Display the text on top of picture1 (location where AVI is playing)
RetVal= TextOut(Picture1.hDC, xPos, yPos, MyStr, MyLen)
End Sub
' Play the movie into the picture control.
On Error GoTo MCI_ERROR
mmcontrol1.Command = "Play"
Change to:
' Play the movie into the picture control.
On Error GoTo MCI_ERROR
Timer1.Interval = 50 ''This number is the refresh rate
mmcontrol1.Command = "Play"
' Enter the following Declare statement as one, single line:
Declare Function TextOut Lib "GDI" (ByVal hDC As Integer, ByVal X As
Integer, ByVal Y As Integer, ByVal lpString As String, ByVal nCount
As Integer) As IntegerAdditional query words: 3.00 multimedia multi-media
Keywords: KB131819