What happened to the Messenger Plus! forums on msghelp.net?
Shoutbox » MsgHelp Archive » Skype & Technology » Tech Talk » VB Help

VB Help
Author: Message:
Mike
Elite Member
*****

Avatar
Meet the Spam Family!

Posts: 2795
Reputation: 48
32 / Male / Flag
Joined: Mar 2003
RE: VB Help
For playing music, I would recommend using the mciSendString API.

Example:

code:
Private Declare Function mciSendString Lib "winmm.dll" Alias "mciSendStringA" (ByVal lpstrCommand As String, _
                                                                              Optional ByVal lpstrReturnString As String = 0, _
                                                                              Optional ByVal uReturnLength As Long = 0, _
                                                                              Optional ByVal hwndCallback As Long = 0) As Long

Private Sub Form_Load()
    mciSendString "open """ & "C:\test.mp3" &  """ type MPEGvideo alias PutWhatYouWantHere ", ByVal 0&, 0, ByVal 0&

    mciSendString "play PutWhatYouWantHere", ByVal 0&, 0, ByVal 0&
End Sub

Private Sub Form_Unload()
    mciSendString "close PutWhatYouWantHere", ByVal 0&, 0, ByVal 0&
End Sub





[/code]Note: All "PutWhatYouWantHere" must be same or, it wont work!
YouTube closed-captions ripper (also allows you to download videos!)
06-21-2005 07:24 PM
Profile E-Mail PM Web Find Quote Report
« Next Oldest Return to Top Next Newest »

Messages In This Thread
VB Help - by DJeX on 06-21-2005 at 04:46 PM
RE: VB Help - by Mnjul on 06-21-2005 at 05:05 PM
RE: VB Help - by DJeX on 06-21-2005 at 05:16 PM
RE: VB Help - by matty on 06-21-2005 at 05:32 PM
RE: VB Help - by DJeX on 06-21-2005 at 05:43 PM
RE: VB Help - by RaceProUK on 06-21-2005 at 07:10 PM
RE: VB Help - by Mike on 06-21-2005 at 07:24 PM


Threaded Mode | Linear Mode
View a Printable Version
Send this Thread to a Friend
Subscribe | Add to Favorites
Rate This Thread:

Forum Jump:

Forum Rules:
You cannot post new threads
You cannot post replies
You cannot post attachments
You can edit your posts
HTML is Off
myCode is On
Smilies are On
[img] Code is On