Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
Home
DiscussionsAccessExcelInfoPathOutlookPowerPointPublisherWord
DirectoryUser Groups
Related Topics
Outlook ExpressInternet ExplorerWindowsMS Server ProductsMore Topics ...

MS Office Forum / Outlook / Calendaring / October 2004

Tip: Looking for answers? Try searching our database.

Different remider sounds

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
jbw423 - 13 Oct 2004 22:49 GMT
I'd like to set up different reminder sounds for Calendar events and for
Tasks.  Is that possible?  If so, please advise.
Ken Slovak - [MVP - Outlook] - 15 Oct 2004 14:26 GMT
One .WAV file is used for all reminders. For anything else you'd have to
code your own reminder interceptor event handler and then call the Win32 API
procedure that plays a sound, using whatever .WAV file you wanted based on
the type of the item that fired the reminder.

See http://www.outlookcode.com/d/code/sendreminder.htm for a code example of
intercepting the reminder event. The Win32 API call you need to use to play
a sound looks like this:

Public Declare Function sndPlaySound Lib "WINMM.DLL" Alias _
 "sndPlaySoundA" (ByVal lpszSoundName As String, ByVal uFlags As _
 Long) As Long

Public Const SND_SYNC = &H0
Public Const SND_ASYNC = &H1
Public Const SND_NODEFAULT = &H2
Public Const SND_LOOP = &H8
Public Const SND_NOSTOP = &H10

Public Sub PlayReminderSound()
 Dim SoundName As String
 Dim wFlags As Integer
 Dim X As Integer

 On Error Resume Next
 SoundName = g_strReminderSound 'file name and path to .WAV file
 If SoundName <> "" Then
   wFlags = SND_ASYNC Or SND_NODEFAULT
   X = sndPlaySound(SoundName, wFlags)
 End If

End Sub

Signature

Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Absolute Beginner's Guide to Microsoft Office Outlook 2003
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm

> I'd like to set up different reminder sounds for Calendar events and for
> Tasks.  Is that possible?  If so, please advise.
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.