Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Accessing application defined .wav files
Message
De
18/02/2000 13:10:33
Len Wooden
Statistical Resources, Inc
Baton Rouge, Louisiane, États-Unis
 
 
À
18/02/2000 10:08:50
Information générale
Forum:
Visual FoxPro
Catégorie:
Fonctions Windows API
Divers
Thread ID:
00334038
Message ID:
00334196
Vues:
13
>>Does anyone know of existing code to access and play any of the NON-system sounds that can be viewed via ControlPanel->Sounds. For example, how would one programmatically go about finding out what .wav file is attached to the New Mail Notification event and then play that .wav file from within a VFP Form.. and secondly, if code doesnt already exist.. what's available as a starting point to construct such code?!?
>
>Ted Roche gave a tip for it in 1998s June Advisor. Try and find that issue.

Okay, I found it.. thanks btw, however.. it looks as if its full of holes.. 1) there's a typo on his lcKeyPath assignment, he needs an additional "\" on the end of his path or else the OpenKey won't work, 2) there's an extraneous .T. parameter on the SetRegKey that causes a problem -- and having gotten around these two.. 3) the SetRegKey doesn't work with the first parameter being an empty string.. or perhaps it does? -- I made an assumption for rightor wrong that this SetRegKey was trying to assign 'ding.wav' to MyApp\MyEvent\.Default (Default) such that (Default) = 'ding.wav' -- if you get my drift.. any help folks? -- unless the (default) gets the value.. it doesnt appear as the defined sound in ControlPanel->Sound

Once again.. thanks for the article reference.. it has helped a ton.. but I'm about a ton short ;-)

-- Len
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform