epac 发表于 2012-1-15 09:39:22

修改注册表 使桌面右键添加多级菜单……这个应该怎么做

在网上淘的……

Windows Registry Editor Version 5.00

"MUIVerb"="App Laucher"
"SubCommands"="Opera;Notepad;Looknstop;UTorrent;Internet explore"

@="Opera"

"Icon"="C:\\Program Files (x86)\\Opera\\opera.exe"

@="C:\\Program Files (x86)\\Opera\\opera.exe"

@="Notepad"

"Icon"="C:\\Program Files (x86)\\Notepad2.exe"

@="C:\\Program Files (x86)\\Notepad2.exe"

@="Looknstop"

"Icon"="C:\\Program Files\\Soft4Ever\\looknstop\\looknstop.exe"

@="C:\\Program Files\\Soft4Ever\\looknstop\\looknstop.exe"

@="UTorrent"

"Icon"="C:\\Program Files (x86)\\uTorrent\\uTorrent.exe"

@="C:\\Program Files (x86)\\uTorrent\\uTorrent.exe"


@="Internet explore"
"Icon"="C:\\Program Files\\Internet Explorer\\iexplore.exe"

@="C:\\Program Files\\Internet Explorer\\iexplore.exe"


问题就是、我想在   App Laucher    下添加个二级菜单、比如 就叫做 “ Games” 、然后在 Games 菜单下 添加一些 启动程序 就像上面的 Opear uTorrent.exe一样&……请问该怎么写注册表呢???

afan 发表于 2012-1-15 12:46:31

这个肯定得制作dll文件

netegg 发表于 2012-1-15 12:52:51

回复 2# afan
dll倒未必必须,不过注册表内部的层级好像挺麻烦的

lz,打开hkcr\*看看,照着写写试试

afan 发表于 2012-1-15 13:03:19

回复afan
dll倒未必必须,不过注册表内部的层级好像挺麻烦的

lz,打开hkcr\*看看,照着写写试试
netegg 发表于 2012-1-15 12:52 http://www.autoitx.com/images/common/back.gif


    如果不需要 dll 那可要好好学下了,不会做 dll 很多时候很无奈~

netegg 发表于 2012-1-15 13:06:29

回复 4# afan
其实如果做dll文件也是为了添加这些注册表,因为有的时候需要用到类注册以便直接关联到某个clsid(class id)

afan 发表于 2012-1-15 13:09:17

回复afan
其实如果做dll文件也是为了添加这些注册表,因为有的时候需要用到类注册以便直接关联到某个cl ...
netegg 发表于 2012-1-15 13:06 http://www.autoitx.com/images/common/back.gif


    添加注册表是为了好调用 dll 吧,我一直都是这么认为的。被你这么一说我迷失了…

netegg 发表于 2012-1-15 13:14:57

本帖最后由 netegg 于 2012-1-15 13:18 编辑

回复 6# afan
不一定,也可以直接执行命令,比如右键运行cmd,没有dll调用

RegWrite("HKCR\Drive\shell\defrag", "", "REG_SZ", "碎片整理(&D)")
RegWrite("HKCR\Drive\shell\defrag\command", "", "REG_SZ", "defrag.exe %1")

afan 发表于 2012-1-15 13:18:07

回复 7# netegg


    这个我知道,但是如果不是单纯的添加1项菜单,而是更多内容,如加多级子菜单、加图标、加图片等,应该是需要dll的。

netegg 发表于 2012-1-15 13:19:31

回复 8# afan
那要看项目具体情况了

zldfsz 发表于 2012-1-15 14:13:32

留个脚印,以后回来学习

epac 发表于 2012-1-16 10:19:38

这个肯定得制作dll文件
afan 发表于 2012-1-15 12:46 http://www.autoitx.com/images/common/back.gif


    谢谢斑竹的解答…… 不会写Dll只能这么凑活用了

epac 发表于 2012-1-16 10:21:41

回复 3# netegg


    谢谢拉……就这样凑活用吧

asionwu 发表于 2012-1-28 20:30:13

WIN7倒是可以直接修改注册表,XP记得要用DLL才行

都市浪子666 发表于 2012-1-29 02:13:17

收藏先,等到公司上班了再研究
页: [1]
查看完整版本: 修改注册表 使桌面右键添加多级菜单……这个应该怎么做