| MYIE2 Online Help > 高级主题 >如何制作插件 | |
| 如何制作插件 |
|
暂时只有英文的文档, 不过相信了解插件技术的朋友都看得明白。请见谅。 General questions about Plugins General questions about Plugins: 1. COM Object COM object must implement IMyIEClient interface. Please refer to IMyIE.h 2. Exe File: Any win32 exe file could be used as plugin. MYIE2 will send different
parameters under different circumstance. 3. Script File: Script File must be written in the following format: Example: The 'language' could be any valid language that IE supports.
There is a 'Config' button in the 'MYIE2 Plugin' option page. MYIE2 will call the corresponding 'Config' function of a plugin, when user clicks the 'Config' button. 1. COM Object: The COM's IMyIEClient::Config will be call with the parameter of the config dialog's hWnd handle. 2. Exe File: The file will be called with a parameter of "-setup". For example, if the filename is "abc.exe", then MYIE2 will call "abc.exe -setup ..." . 3. Script File: Not support currently... How to add new or override existing protocols? With MYIE2, the plugin could estanblish a new protocol, such as book://, or override an existing protocol, such as ftp:// .When the user inputs the protocol in the address bar or clicks the protocol on webpage, MYIE2 will call the plugin. 1. COM Object: Not support currently... 2. Exe File: The file will be called with the parameter "-u=url", in which the url is the address that the user wants to visit, such as book://www.mysite.com/abc.pdf, or ftp://www.google.com . 3. Srcipt File: Not support currently... How to make a "Button" type plugin? MYIE2 supports "Button" type plugins, which will be placed on "Ext Button" toolbar. The plugin is called when user clicks on the corresponding button. The 'Button' plugin could be implemented using the following methods. 1.COM Object: Sample Plugin.ini:
Sample Plugin.ini: 3.Exe File: Sample Plugin.ini:
|
| 报告错误 © Copyright MYSoft Technology, 2002. All Rights Reserved. |