如何做IE的Plug-in 及在IE中的menu如何加入自己的选单.......(200分)(200分)

  • 主题发起人 主题发起人 yuhung
  • 开始时间 开始时间
Y

yuhung

Unregistered / Unconfirmed
GUEST, unregistred user!
如何做IE的Plug-in !
在IE中的menu如何加入自己的选单......
如何得到在浏览器上浏览别人网页的文字
最好带有 例

 
历史问题中有你要的答案
 
这里有篇文章,关于加菜单的。

Adding Entries to the Standard Context Menu

--------------------------------------------------------------------------------

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
Implementation Steps
Related Topics
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 version 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.

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.

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.
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.

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".
 
o*o 答的好!
但只解决了一部份的问题!最重要的是如何写个Plug-in的程序在浏览器中
并且得到正在浏览网页的内容。

有一点像 网译,地球村...等软体
最好带例子,答的完整在加200分。

同志们!加油!
 
I want to know how to ?
 
我正在试验,另外,谁有办法得到netscape navigator 、 opera
的当前url地址?
 
继续加油啊
 
请仔细研究一下 netants 或 flashget
里面应该可以找得到答案
最麻烦的还是要自己编一个 com dll
 
插件不易。
菜单易:platsdk中有个例子,com --- band 好例子。
 
to: 如何得到在浏览器上浏览别人网页的文字?
参考msdn Library

告诉你一个例子:netants或flashget安装目录下的htm文件
 
yuhung:如果还想接着讨论请定期提前自己的帖子,如果不想继续讨论请结束帖子。
 
给另一各自己
 
后退
顶部