|
Home > Archive > Programming with dBASE > February 2006 > Registry Question
You are viewing an archived Text-only version of the thread.
To view this thread in it's original format and/or if you want to reply to
this thread please [click here]
|
|
| Paul Van House 2006-02-20, 8:23 pm |
| does anyone know where in the registry I can find the default
application to "record" .WAV files and .MP3 files?
I'm using Shellexecute to open the file for recording...if I know the
file name:
ShellExecute( _app.framewin.hwnd, 'Record', 'c:\windows\media
\recycle.wav', '', '', 4 )
But If I don't know the file name I need to know which application to
call. Sndrec32.exe is the default on this machine, but this application
runs at radio stations and they could have any one of a number of
recording applications.
--
Paul Van House
remove ".removeme" for e-mail replies
Radio/TV Software and Baseball Stat Software:
http://www.binxsoftware.com
Family Home Page: http://vanhouse.binxsoftware.com
Church Home Page: http://www.ashfordumc.org
| |
| Jan Hoelterling 2006-02-25, 9:36 am |
| Hi Paul,
right under HKEY_CLASSES_ROOT I see entries for each configured file
extension, including .WAV
Within .WAV, I have entries for "OpenWithList" and "OpenWithProgIDs" - I
have not looked at these entries in detail (no time right now), but maybe
that will get you started?
HTH,
Jan
| |
| Paul Van House 2006-02-25, 9:36 am |
| In article <p3L#bG9NGHA.592@news-server>, jan@hoelterling.com says...
> Hi Paul,
>
> right under HKEY_CLASSES_ROOT I see entries for each configured file
> extension, including .WAV
>
> Within .WAV, I have entries for "OpenWithList" and "OpenWithProgIDs" - I
> have not looked at these entries in detail (no time right now), but maybe
> that will get you started?
>
> HTH,
>
> Jan
>
>
>
>
I saw these as well, but other than the name of the executable there is
no other information (such as the path to the executable) and no
indication which is the "default" program. There is a key called
Persisent Handler that has a key value that on my machine does not point
to any other software. (There's an apparently identical list in
HKEY_LOCAL_MACHINE\S
OFTWARE\CLASSES) In my case I have four entries:
"Audition.exe" (which should be my default for recording)
"itunes.exe"
"sndrec32.exe"
"wmplayer.exe"
Of the four, "audition.exe" is the only one that will not open using a
"run" command without a path. Sndrec32 and wmplayer are windows
programs so they're in the "path." I'm not sure why itunes opens
without a path but there must be a hack somewhere.
The OpenWithProgID's key has two zero-length binary entries that lead
nowhere.
--
Paul Van House
(remove _removeme_ from mail address for e-mail replies)
Radio/TV software on my home page
http://www.binxsoftware.com
Family home page:
http://www.binxsoftware.com/vanhouse
Church home page:
http://www.ashfordumc.org
| |
| Paul Van House 2006-02-25, 9:36 am |
| In article <MPG. 1e66c12e65e912d79896
86@news.dbase.com>, pvanhouse1
_removeme_@houston.rr.com says...
> In article <p3L#bG9NGHA.592@news-server>, jan@hoelterling.com says...
> nowhere.
>
I found two keys:
This was on my office laptop and at least one of the servers (didn't
notice it on my home computer but it might be there):
HKEY_CLASSES_ROOT\So
undRec\shell\record\
command
This was on my home machine but not on my office laptop or servers:
HKEY_CLASSES_ROOT\iT
unes. wav\shell\Record\com
mand
Not sure if the iTunes install gets rid of the "soundrec" key or what.
I found several other keys with extensions and what looks like a "Most
recently used" list of programs that had opened this file type (listed
as a, b, c and so on). I also found a key that would tell me how to
open 'audition.exe'
HKEY_CLASSES\ROOT\Ap
plications\Audition. exe\shell\open\comma
nd\default
In summary, it seems it will be much easier to just have the user choose
the application using getfile() and save it in the app's INI file (or
the registry so I can further confuse the issue)
--
Paul Van House
remove ".removeme" for e-mail replies
Radio/TV Software and Baseball Stat Software:
http://www.binxsoftware.com
Family Home Page: http://vanhouse.binxsoftware.com
Church Home Page: http://www.ashfordumc.org
| |
| Jan Hoelterling 2006-02-25, 9:36 am |
| Glad you found an approach & sorry I could not help more...
Jan
|
|
|
|
|