Forums before death by AOL, social media and spammers... "We can't have nice things"
|    comp.lang.visual.basic    |    MS Visual Basic discussions, NOT dot-net    |    10,840 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 9,796 of 10,840    |
|    George Bashore to Jack Sadie    |
|    Re: Very Newbie needs Windows start up r    |
|    26 Dec 05 19:38:46    |
   
   From: gbashore@bcpl.net   
      
   Jack try this.   
   Replace PathAndFileName with the path and file name to your wav file for   
   each day of the week.   
   example Call sndPlaySound("C:\sounds\startup.wav", 1)   
   HTH   
   George   
      
      
      
   Option Explicit   
   Private Declare Function sndPlaySound Lib "winmm.dll" Alias _   
   "sndPlaySoundA" (ByVal FileName As String, _   
   ByVal Flags As Long) As Long   
   Dim myDate As String   
      
   Private Sub Form_Load()   
      
    myDate = Format(Now, "dddd")   
    Debug.Print myDate   
    Select Case myDate   
    Case "Monday"   
    Call sndPlaySound("PathAndFileName", 1)   
    Case "Tuesday"   
    Call sndPlaySound("PathAndFileName", 1)   
    Case "Wednesday"   
    Call sndPlaySound("PathAndFileName", 1)   
    Case "Thursday"   
    Call sndPlaySound("PathAndFileName", 1)   
    Case "Friday"   
    Call sndPlaySound("PathAndFileName", 1)   
    Case "Saturday"   
    Call sndPlaySound("PathAndFileName", 1)   
    Case "Sunday"   
    Call sndPlaySound("PathAndFileName", 1)   
    End Select   
   End Sub   
      
      
      
   "Jack Sadie"
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca