惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

H
Help Net Security
博客园 - Franky
GbyAI
GbyAI
Threat Intelligence Blog | Flashpoint
Threat Intelligence Blog | Flashpoint
爱范儿
爱范儿
IT之家
IT之家
酷 壳 – CoolShell
酷 壳 – CoolShell
aimingoo的专栏
aimingoo的专栏
博客园_首页
MongoDB | Blog
MongoDB | Blog
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recent Announcements
Recent Announcements
Scott Helme
Scott Helme
有赞技术团队
有赞技术团队
M
MIT News - Artificial intelligence
C
CERT Recently Published Vulnerability Notes
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
Jina AI
Jina AI
F
Fortinet All Blogs
N
Netflix TechBlog - Medium
L
LangChain Blog
L
LINUX DO - 最新话题
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
H
Hacker News: Front Page
MyScale Blog
MyScale Blog
P
Palo Alto Networks Blog
G
Google Developers Blog
Google DeepMind News
Google DeepMind News
AI
AI
T
Troy Hunt's Blog
Microsoft Azure Blog
Microsoft Azure Blog
阮一峰的网络日志
阮一峰的网络日志
cs.CL updates on arXiv.org
cs.CL updates on arXiv.org
Vercel News
Vercel News
Microsoft Security Blog
Microsoft Security Blog
罗磊的独立博客
S
Secure Thoughts
大猫的无限游戏
大猫的无限游戏
博客园 - 叶小钗
人人都是产品经理
人人都是产品经理
Blog — PlanetScale
Blog — PlanetScale
博客园 - 司徒正美
Apple Machine Learning Research
Apple Machine Learning Research
钛媒体:引领未来商业与生活新知
钛媒体:引领未来商业与生活新知
博客园 - 三生石上(FineUI控件)
S
Security @ Cisco Blogs
Cloudbric
Cloudbric
E
Exploit-DB.com RSS Feed
Attack and Defense Labs
Attack and Defense Labs

博客园 - Michael Zhao

easyWeb2Pic -- 在IE浏览器中,将整个网页保存为BMP, JPEG/JPG, GIF, PNG或者TIFF图片 PeopleSoft Intergration Broker 设置及实列 网页保存利器——easyWebSave介绍 象IE收藏夹那样管理你从Web保存的文档(2) 网页保存利器——easyWebSave介绍 象IE收藏夹那样管理你从Web保存的文档(1) 网页保存利器——easyWebSave介绍 综述 Sharepoint中身份转换问题 Microsoft Sharepoint Service Access 2003 PeopleSoft 客户端安装 MFC ATL/WTL的一个技巧 上网浏览必备利器 -- easy Web Save easy Web Save 有人用过吗?可以把在网页的选择保存成HTML Complete, HTML Text Only, 甚至Word. 感觉挺方便的。 RES Protocol Inno Setup,有人用过吗? 免费的Installer 和 免费的Pascal Script Engine. Creating a Dialog-based App(转载) Unicode-enabling Microsoft C/C++ Source Code(转载) Building Unicode applications in MFC(转载) Int,Float,Char *,CString之间的转换(转载) 你经常使用Baidu.com吗?
Adding Entries to the Standard Context Menu(转载 from msdn)
Michael Zhao · 2005-05-07 · via 博客园 - Michael Zhao

This tutorial explains how to add an entry into the standard context menus in Microsoft Internet Explorer that executes a script specified by a URL.

Requirements and Dependencies

Developers who want to add entries to the standard context menus in Internet Explorer must be familiar with the registry. Developers should also be familiar with context menus. For more information about context menus, see the Windows Shell API documentation in the Platform Software Development Kit (SDK).

The implementation described here is valid for Internet Explorer 4.0 or later. This feature is not available in earlier versions of Internet Explorer.

Implementation Steps

The following steps are required to add an entry into the standard context menus in Internet Explorer.

  1. Create a new key, using the text you want displayed in the context menu as the name, under:

    HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt

    The result should look like:

    HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\<Menu Text>

    <Menu Text> should be replaced with the text that you want displayed in the context menu. The name can include an ampersand (&) character, which will cause the character that follows to be underlined and used as a shortcut key.

  2. Set the default value of the key to the URL of the page that contains the script you want the context menu entry to execute. This script can obtain the parent window object, the screen where the context menu item was executed, from the menuArguments property of the external object.
  3. Optional. Create a binary value, Contexts, under:

    HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\<Menu Text>

    The result should look like:

    HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\<Menu Text>\Contexts

    Set the value of Contexts to indicate which contexts your entry should appear in the standard context menu by using a bit mask consisting of the logical OR of the following values:

    Context Value
    Default 0x1
    Images 0x2
    Controls 0x4
    Tables 0x8
    Text selection 0x10
    Anchor 0x20

    For example, if you want your context menu entry to appear in the default context menu and when the context is a text selection, set the value of Contexts to 0x11.

  4. Optional. Create a DWORD value, Flags, under:

    HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\<Menu Text>

    The result should look like:

    HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\MenuExt\<Menu Text>\Flags

    Set the value of Flags to 0x1 to make the script run just as if it had been called through the showModalDialog method. Unlike the showModalDialog method, the script can access the window object of the parent window from the menuArguments property of the external object.

Strings stored inside a resource can be referenced by providing the path to the resource and reference identification in the format "path, resource_id". For example, if you wanted to use string resource 123 in Example.dll, you would use "Example.dll, 123".

Related Topics