Re: querying system sounds

new topic     » topic index » view thread      » older message » newer message

George Henry wote:

> Does anyone know how to find out what sound (wav file) Windows associates
> with a given situation, such as "program error"? (If you go look in
Control
> Panel, you can find the current answer to this question for your instance
of
> Windows. I want to be able to programatically find the current answer for
> any instance of Windows under which my program is running.)
>
You'll need to query the registry; there are libraries for doing this in the
rapideuphoria archives.  Use a registry editor (REGEDIT comes with windows)
to look in HKEY_CURRENT_USER\AppEvents\Schemes\Apps\.Default - you will find
all the system sounds in there - and work out which ones you need to query.
For example the Critical Stop sound is in

Personally, I use and recommend reg.ew by Davi T. Figueiredo.

N.B. this is for a Windows 98 system but I'm guessing other versions work
the same way.

chris.

new topic     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu