2

I'm using Windows 10 OS. When I insert audio CD I have 2 additional items in Audio CD auto play menu. Applications Winamp and VLC have done something to the system so they would appear in Audio CD auto play menu. I would like to add third application. How can I do that?

For now, I don't need to send CD parameter so that app knows which drive to use. I only need to run an exe program.

Autoplay menu

1 Answers1

3

I was able to find the answer on my own after digging through the registry.

This script will add Media Player Classic. I would just like to note that I don't know exactly how it works. This is mostly copy-paste from VLC.

Windows Registry Editor Version 5.00

[HKEY_CLASSES_ROOT\MPC.CDAudio]
@="MPC CD Audio"

[HKEY_CLASSES_ROOT\MPC.CDAudio\DefaultIcon]
@="\"C:\\Program Files\\MPC-HC\\mpc-hc64.exe\",0"

[HKEY_CLASSES_ROOT\MPC.CDAudio\shell]
@="Open"

[HKEY_CLASSES_ROOT\MPC.CDAudio\shell\Open]

[HKEY_CLASSES_ROOT\MPC.CDAudio\shell\Open\command]
@="\"C:\\Program Files\\MPC-HC\\mpc-hc64.exe\" /cd %1"


[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\Handlers\MPCPlayCDAudioOnArrival]
"Action"="Play audio CD"
"DefaultIcon"="\"C:\\Program Files\\MPC-HC\\mpc-hc64.exe\",0"
"InvokeProgID"="MPC.CDAudio"
"InvokeVerb"="Open"
"Provider"="Media Player Classic"


[HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Explorer\AutoplayHandlers\EventHandlers\PlayCDAudioOnArrival]
"MPCPlayCDAudioOnArrival"=""

I would also like to note that open command is different for each program you register so the line @="\"C:\Program Files\MPC-HC\mpc-hc64.exe\" /cd %1" may differ.

From what I can tell parameters Action and Provider have arbitrary values. They only determine what you'll see in the Auto Play dialog.