有谁知道如何在IE的工具栏中添加一个按键,就象NetAnts那样。我用Delphi。(100分)

  • 主题发起人 主题发起人 hanyongjian
  • 开始时间 开始时间
H

hanyongjian

Unregistered / Unconfirmed
GUEST, unregistred user!
或者提供资料也可以。
 
注册表:<br>HKEY_LOCAL_MACHINE/Software/Microsoft/Internet Explorer/Extensions/<br>看看NetAnts,照着葫芦画瓢就可以了
 
例如:<br>[HKEY_LOCAL_MACHINE/Software/Microsoft/Internet Explorer/Extensions/{FB5F1910-F110-11d2-BB9E-00C04F795683}]<br>"CLSID"="{1FBA04EE-3024-11D2-8F1F-0000F87ABD16}" &nbsp; &nbsp; &nbsp; &nbsp;//CLSID<br>"Exec"="C://Program Files//Messenger//MSMSGS.EXE" &nbsp; &nbsp; &nbsp; //点击时运行的程序路径<br>"Default Visible"="Yes" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //默认显示在工具栏上<br>"HotIcon"="C://Program Files//Messenger//MSMSGS.EXE,302"//鼠标移动过去时的图标<br>"Icon"="C://Program Files//Messenger//MSMSGS.EXE,301" &nbsp; //没有鼠标时的图标<br>"MenuText"="Messenger" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//在菜单“工具”下的Caption<br>"ButtonText"="Messenger" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;//在自定义窗口中的名字<br>"ToolTip"="Messenger" &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; //ToolTip
 
建立<br>{FB5F1910-F110-11d2-BB9E-00C04F795683}和<br>{1FBA04EE-3024-11D2-8F1F-0000F87ABD16}<br>有什么需要注意的地方吗?
 
{FB5F1910-F110-11d2-BB9E-00C04F795683}是你自己的程序的CLSID,用Ctrl+Shif+G生成一个就可以<br>{1FBA04EE-3024-11D2-8F1F-0000F87ABD16}:是系统的CLSID,不要改变<br>
 
那么我如何得到系统的CLSID呢,每一台机子上的CLSID应该都是不同的。
 
系统的CLSID是固定不会变的,与机子无关
 
多人接受答案了。
 
后退
顶部