only search Wiseman.La

The World NEXT ends 



Disclaimer:
I'm sure there's a zillion better ways to do this, but here's how I did it. This may not work for you. It may, in fact, cause the end of civilization. If it does, don't sue me - you have been warned!

So you'd like to have a button on your Action bar that looks like this:


Image:How to add an action button to play Voicemail (WAV) files to your inbox (Lotus Notes 5/6/7/8)

When you click the button, you'd like it to present you with a list of your VMs from your mail file and let you pick one to play. Like this:

Image:How to add an action button to play Voicemail (WAV) files to your inbox (Lotus Notes 5/6/7/8)

When you select a VM and click "Ok", it detaches the WAV file to your TEMP directory and ... plays it:

Image:How to add an action button to play Voicemail (WAV) files to your inbox (Lotus Notes 5/6/7/8)

That seems reasonably workable. How do you do it?
Here's a link to an NSF you can download that has the design elements mentioned below: playVMs.nsf
You need the following design elements:
Element/Location Purpose
Telephone icon Action button - ($Inbox) Action bar This launches the code that starts it all.
PlayVM agent - Agents list This is the actual LotusScript code that detaches the WAV file and plays it.
(Voice Inbox) |   va_VoiceMessages view - Views This is the view used in the VM Picker dialog box.
Blankwav - Forms This code is rem'd out, but if you use the Notes.workspace player to play your WAV files, you get no interface to STOP playing. This can be somewhat embarrassing, depending on who walks in to your office.
I decided to go with the default windows  'ugly' player because of this issue.



That's pretty much it. It's worked for us for awhile and we haven't seen any issues. I've only tested it on Windows 98/2000/XP. I'm told it works in Vista, but I don't touch Vista. I've only tested it in English.

Comments (0)
Craig Wiseman February 22nd, 2008 08:19:42 PM

 Comments
No Comments Found
Discussion for this entry is now closed.