|
-
Aug 6th, 2000, 04:38 AM
#1
Thread Starter
Addicted Member
Ok now i know everyone here doesnt have AOL..but maybe anyone can help...
What code would i use to access that crap that sounds off when you get mail in aol? am sure it is in a aol.bas somewhere but i havent found it..
Thank you
-
Aug 6th, 2000, 08:48 AM
#2
Monday Morning Lunatic
What do you mean, just accessing Joanna's lovely recorded wave file, or something else?
I refuse to tie my hands behind my back and hear somebody say "Bend Over, Boy, Because You Have It Coming To You".
-- Linus Torvalds
-
Aug 6th, 2000, 12:46 PM
#3
Or do you mean playing the sounds that are located in your C:\America Online folder?
-
Aug 6th, 2000, 03:50 PM
#4
Thread Starter
Addicted Member
You got it matthew
Yeah i want to access the sounds that are in my c:\america online folder. hehe ill look there 
-
Aug 6th, 2000, 05:01 PM
#5
You want to play the sounds? If so, use the PlaySound API.
Code:
Private Declare Function PlaySound Lib "winmm.dll" Alias "PlaySoundA" (ByVal lpszName As String, ByVal hModule As Long, ByVal dwFlags As Long) As Long
Private Sub Command1_Click()
'Play the WAV
PlaySound "C:\America Online\MyWav.wav", 0&, &H1
End Sub
-
Aug 7th, 2000, 01:08 AM
#6
Thread Starter
Addicted Member
Thanks
Megatron...i tired your code but it doesnt work....it says "bad dll calling convention"
-
Aug 7th, 2000, 02:53 AM
#7
Try this:
Code:
Declare Function sndPlaySound Lib "winmm.dll" Alias "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As Long) As Long
Global Const SND_ASYNC = &H1
Global Const SND_NODEFAULT = &H2
Sub Playwav(file)
SoundName$ = file
wFlags% = SND_ASYNC Or SND_NODEFAULT
X% = sndPlaySound(SoundName$, wFlags%): NoFreeze% = DoEvents()
End Sub
Usage:
'Play
'Call Playwav("C:\America Online\im.wav")
'Stop
'Call Playwav(" ")
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|