欢迎光临
我们一直在努力

一段在IE上加按钮的Script,主要操作注册表,先贴了再说-.NET教程,Windows开发

建站超值云服务器,限时71元/月

addbuttonie.vbs
adds a custom button to the ie50 toolbar

rc = msgbox("would you like to add a new button to the ie50 toolbar?",vbyesno)
if rc=vbno then wscript.quit

the registry path where to add our new entries.
if your registry doesnt contain a shell node, itll be silently created
reg_hklm_ie50_base = "hklm\software\microsoft\internet explorer\extensions"

adds a new key (needs a newly created guid)
reg_hklm_ie50_guid = reg_hklm_ie50_base & "\{10954c80-4f0f-11d3-b17c-00c0dfe39736}\"

creates the required values
set shell = wscript.createobject("wscript.shell")
shell.regwrite reg_hklm_ie50_guid & "buttontext", _
               "我的记事本", _
               "reg_sz"
shell.regwrite reg_hklm_ie50_guid & "menutext", _
               "我的记事本", _
               "reg_sz"
shell.regwrite reg_hklm_ie50_guid & "menustatusbar", _
               "run script", _
               "reg_sz"
shell.regwrite reg_hklm_ie50_guid & "clsid", _
               "{1fba04ee-3024-11d2-8f1f-0000f87abd16}", _
               "reg_sz"
shell.regwrite reg_hklm_ie50_guid & "default visible", _
               "yes", _
               "reg_sz"
shell.regwrite reg_hklm_ie50_guid & "icon", _
               "d:\documents and settings\sgyuan\desktop\cutting1199\icon1.ico", _
               "reg_sz"
shell.regwrite reg_hklm_ie50_guid & "hoticon", _
               "d:\documents and settings\sgyuan\desktop\cutting1199\icon2.ico", _
               "reg_sz"
shell.regwrite reg_hklm_ie50_guid & "exec", _
               "notepad.exe", _
               "reg_sz"

赞(0)
版权申明:本站文章部分自网络,如有侵权,请联系:west999com@outlook.com 特别注意:本站所有转载文章言论不代表本站观点! 本站所提供的图片等素材,版权归原作者所有,如需使用,请与原作者联系。未经允许不得转载:IDC资讯中心 » 一段在IE上加按钮的Script,主要操作注册表,先贴了再说-.NET教程,Windows开发
分享到: 更多 (0)