Results 1 to 7 of 7

Thread: Youve got mail crap

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    240

    Talking

    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

  2. #2
    Monday Morning Lunatic parksie's Avatar
    Join Date
    Mar 2000
    Location
    Mashin' on the motorway
    Posts
    8,169
    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

  3. #3
    Guest
    Or do you mean playing the sounds that are located in your C:\America Online folder?

  4. #4

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    240

    You got it matthew

    Yeah i want to access the sounds that are in my c:\america online folder. hehe ill look there

  5. #5
    Guest
    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

  6. #6

    Thread Starter
    Addicted Member
    Join Date
    May 2000
    Posts
    240

    Unhappy Thanks

    Megatron...i tired your code but it doesnt work....it says "bad dll calling convention"

  7. #7
    Guest
    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
  •  



Click Here to Expand Forum to Full Width