今天我有一个戴尔 KB522 键盘,上面有 7 个多媒体键。我想知道是否可以更改这些键的行为,因为没有官方的戴尔应用程序可以做到这一点(适用于 Windows 7 SP1 x64 并通过扩展坞连接到笔记本电脑戴尔 Latitude E6430)。
答案1
对于 Spotify(%APPDATA%\Spotify\spotify.exe --> 转换为十六进制并写在“hex(2):”之后,以便能够使用系统变量写入默认的 REG_EXPAND_SZ 或可扩展字符串值)和媒体(♫)按钮(默认情况下调用 *.cda 或 AudioCD 相关应用程序),只需将以下代码保存在 *.reg 文件中并执行它即可。
Windows Registry Editor Version 5.00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AudioCD]
"BaseClass"="Drive"
"FriendlyTypeName"="@shell32.dll,-10144"
@="CD Audio Track"
"EditFlags"=hex:02,00,10,00
".cda"="CD Audio Track"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AudioCD\shell]
@="play"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AudioCD\shell\open]
@="&Open"
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AudioCD\shell\open\command]
@=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,64,00,61,00,6e,\
00,69,00,65,00,6c,00,2e,00,64,00,65,00,6c,00,67,00,61,00,64,00,6f,00,5c,00,\
41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,52,00,6f,00,61,00,6d,00,69,\
00,6e,00,67,00,5c,00,53,00,70,00,6f,00,74,00,69,00,66,00,79,00,5c,00,73,00,\
70,00,6f,00,74,00,69,00,66,00,79,00,2e,00,65,00,78,00,65,00,00,00
"command"=hex(7):46,00,6e,00,34,00,70,00,61,00,31,00,5a,00,63,00,65,00,38,00,\
6c,00,51,00,21,00,52,00,56,00,6f,00,60,00,39,00,4b,00,2b,00,63,00,64,00,61,\
00,3e,00,5d,00,34,00,73,00,6d,00,52,00,48,00,78,00,2b,00,7e,00,3d,00,46,00,\
5f,00,77,00,2d,00,52,00,27,00,4d,00,2b,00,3f,00,6c,00,20,00,22,00,25,00,31,\
00,22,00,00,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AudioCD\shell\play]
@="&Play"
"MUIVerb"=hex(2):40,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52,00,6f,00,\
6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00,32,00,5c,\
00,75,00,6e,00,72,00,65,00,67,00,6d,00,70,00,32,00,2e,00,65,00,78,00,65,00,\
2c,00,2d,00,39,00,39,00,39,00,31,00,00,00
[HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AudioCD\shell\play\command]
@=hex(2):43,00,3a,00,5c,00,55,00,73,00,65,00,72,00,73,00,5c,00,64,00,61,00,6e,\
00,69,00,65,00,6c,00,2e,00,64,00,65,00,6c,00,67,00,61,00,64,00,6f,00,5c,00,\
41,00,70,00,70,00,44,00,61,00,74,00,61,00,5c,00,52,00,6f,00,61,00,6d,00,69,\
00,6e,00,67,00,5c,00,53,00,70,00,6f,00,74,00,69,00,66,00,79,00,5c,00,73,00,\
70,00,6f,00,74,00,69,00,66,00,79,00,2e,00,65,00,78,00,65,00,00,00
注1:如果您需要编写不同的可扩展字符串值(因为您想要启动不同的应用程序),您可以按照这些示例进行操作。
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AudioCD\shell\play\command /ve /t REG_EXPAND_SZ /d "%APPDATA%\Spotify\spotify.exe"
reg.exe add HKEY_LOCAL_MACHINE\SOFTWARE\Classes\AudioCD\shell\open\command /ve /t REG_EXPAND_SZ /d "%APPDATA%\Spotify\spotify.exe"
笔记2:如果你需要知道你的密钥在做什么,我建议你分析整个过程进程监控。