Jump to content
xisto Community
BubbaBeans

Custom Event Sounds (vb.net)

Recommended Posts

I wrote an alarm program that handles multiple alarms. Each time an alarm is triggered, it plays a different sound.I'm wanting to expand on this, however. I'd like to register my program with Windows so it shows up in the Sounds and Audio Device Properties window so the user can change the alarm sounds to whatever they'd like.Then, obviously, I want the program to play those sounds when appropriate. I know how to play sounds with vb.net, that isn't the issue. My question is whether there is a way for my program to raise an event that will automatically play the appropriate sound. Or would it be easier to simply read the information stored in the registry, and have my program play that sound?I've tried reading from the registry and I'm apparently not reading it correctly. I created subkeys in the registry on my computer already to test this out.HKEY_CURRENT_USER\AppEvents\Apps\DANotifierIt has 4 subkeys named 1 Hour, 12 Hours, 24 Hours, and After Hours.Each of those have 2 subkeys named .current and .defaultHow can I read ".current" ?Or, again, is there a way to have my program raise an event so Windows automatically plays the correct sound?

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×
×
  • Create New...

Important Information

Terms of Use | Privacy Policy | Guidelines | We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.