Information générale
Catégorie:
Fonctions Windows API
>>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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement