Custom sounds discovery #210
Unanswered
ZeroNotHero
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I know that in BurnToast 1.0 sounds are not supported. I also know that a Windows update broke .8.5 sounds using a path.
The only way to get sounds is by using the default Windows sounds. That's it, nothing else right?
That's 100% true. No way around that.
I cracked this last night after I started thinking the Windows way. It only uses predefined sounds. so why not just open up the registry (it took some tinkering) and added my own "Toast, Toast2, - Toast10" entries. From there i can point to a .wav or .mp3 (that's all i tested) anywhere on my PC. I modified the BurntToast.psm1 file to also include those "Toast" sounds to the list Josh provided in the psm1.
So now when I use BurntToast and I want to use a custom sound, I simply put: -sound Toast5 (or whatever Toast#), and my "custom" sound plays when the notification pops.
Is this an ugly workaround? I wasn't sure on sharing this. I'm new to scripting, but have been coding for decades.
If there is any interest, I will post the 2 files.
Beta Was this translation helpful? Give feedback.
All reactions