bho

Cannot get BHO working in 64 bit

♀尐吖头ヾ 提交于 2019-12-03 15:04:21
问题 I'm working on IE11 Browser Helper Object. I got it working when I build it in x86. The problem is, I want to use the project on x64 the BHO extension isn't working when it's built on x64. The extension shows up in the Internet Explorer add-ons screen, but the javascript popup is not showing up. The DLL is registered using the x64 version of regasm via the Visual Studio command prompt as administrator, with/without the /codebase and /tlb but without result. The registry key is added

How can I run a <script> tag that I just inserted dynamically from a BHO

时光怂恿深爱的人放手 提交于 2019-12-03 09:38:37
问题 I'm completely new to developing IE extensions with Browser Helper Objects. I managed to create a BHO that successfully inserts a script tag that references a javascript file in the head of the HTML page (see code below). But the script tag just sits there in the DOM and the external javascript file is not executed. Is there any way to tell the browser to run the external javascript file? Thanks! Code Details: I call the following method on the OnDocumentComplete event: void CHelloWorldBHO:

How can I list the plugins (BHOs) that Internet Explorer uses, from my program?

血红的双手。 提交于 2019-12-03 04:37:42
I need to retrieve, in my Win32 standalone program, a list of currently installed Internet Explorer add-ons (Browser Helper Objects), and - if possible - their enabled/disabled status. Since anti-spyware programs (or e.g. Autoruns ) can get this list from somewhere, is there a simple way to request this list programatically ? EDIT : Thanks to @ Stefan , who pointed me to the right registry keys ( all HKLM ): // BHOs HKLM\Software\Microsoft\Windows\CurrentVersion\explorer\Browser Helper Objects // IE toolbars HKLM\Software\Microsoft\Internet Explorer\Toolbar // IE extensions HKLM\Software

How can I run a <script> tag that I just inserted dynamically from a BHO

六月ゝ 毕业季﹏ 提交于 2019-12-02 23:50:45
I'm completely new to developing IE extensions with Browser Helper Objects. I managed to create a BHO that successfully inserts a script tag that references a javascript file in the head of the HTML page (see code below). But the script tag just sits there in the DOM and the external javascript file is not executed. Is there any way to tell the browser to run the external javascript file? Thanks! Code Details: I call the following method on the OnDocumentComplete event: void CHelloWorldBHO::InsertScriptTag(IDispatch* pDispDoc) { HRESULT hr = S_OK; // query for an HTML document. CComQIPtr

Activate IE Add-Ons from an BHO

微笑、不失礼 提交于 2019-12-02 09:33:32
I've written two objects, a deskband toolbar and a bho for IE. The goal is that the bho shows up the toolbar after installation. Microsoft's approach is to use pBrowser->ShowBrowserBar(&vtBandGUID, &vtShow, 0); This method is nice to show and hide toolbars which got already activated via the addon manager but does not work for deactivated addons. Is there a way to do exactly the same thing as the addon manager does (enabling / disabling specific addons) just programmatically? You should clarify your question. Writing code to activate add-ons that the user has specifically disabled could be

IE9 fails to fire onscroll event on HTMLWindow2 in BHO

半世苍凉 提交于 2019-12-02 06:52:52
问题 IE can fire onscroll event when using Document Mode : IE7 or IE8, but fail to fire onscroll event when using Document Mode: IE9 . I also register the onscroll event on documentElement, it reacts the same way. The BHO class uses: public IDispEventImpl<3, CHelloWorldBHO, &DIID_HTMLWindowEvents2, &LIBID_MSHTML, 4, 0>. And sink the event: BEGIN_SINK_MAP(CHelloWorldBHO) SINK_ENTRY_EX(1, DIID_DWebBrowserEvents2, DISPID_DOCUMENTCOMPLETE, OnDocumentComplete) SINK_ENTRY_EX(1, DIID_DWebBrowserEvents2,

IE9 fails to fire onscroll event on HTMLWindow2 in BHO

安稳与你 提交于 2019-12-02 04:39:44
IE can fire onscroll event when using Document Mode : IE7 or IE8, but fail to fire onscroll event when using Document Mode: IE9 . I also register the onscroll event on documentElement, it reacts the same way. The BHO class uses: public IDispEventImpl<3, CHelloWorldBHO, &DIID_HTMLWindowEvents2, &LIBID_MSHTML, 4, 0>. And sink the event: BEGIN_SINK_MAP(CHelloWorldBHO) SINK_ENTRY_EX(1, DIID_DWebBrowserEvents2, DISPID_DOCUMENTCOMPLETE, OnDocumentComplete) SINK_ENTRY_EX(1, DIID_DWebBrowserEvents2, DISPID_NAVIGATECOMPLETE2, OnNavigateComplete2) SINK_ENTRY_EX(1, DIID_DWebBrowserEvents2, DISPID

How to set the name of an bho (visible in the addon options in ie)

瘦欲@ 提交于 2019-12-02 01:15:31
问题 How can I rename the name of a browser helper object. The normal information in the properties of the dll are all fine. However when I open Internet Explorer to view the Addons the name of my Addon is NameIEBHO Class The DLL is signed The VERSIONINFO is set (it includes CompanyName, FileDescription, FileVersion, InternalName, LegalCopyright, OriginalFilename, ProductName and ProductVersion) What do I have to modify to change the name shown in Internet Explorer? The Information in How can i

How to set the name of an bho (visible in the addon options in ie)

我们两清 提交于 2019-12-01 20:52:19
How can I rename the name of a browser helper object. The normal information in the properties of the dll are all fine. However when I open Internet Explorer to view the Addons the name of my Addon is NameIEBHO Class The DLL is signed The VERSIONINFO is set (it includes CompanyName, FileDescription, FileVersion, InternalName, LegalCopyright, OriginalFilename, ProductName and ProductVersion) What do I have to modify to change the name shown in Internet Explorer? The Information in How can i set the name of IE Extension (BHO In IE) did not help This information is stored in .rgs file in your

Accessing body (at least some data) in a iframe with IE plugin Browser Helper Object (BHO)

我是研究僧i 提交于 2019-12-01 12:11:54
问题 I'm developing an IE8+ BHO plugin. For now I'm simply trying to insert a text into an iframe (class="Al Ai Editable") contained in another iframe (id="canvas_frame") . I managed to obtain the IHTMLElement of the iframe i want to add text to (the class="Al Ai editable"). I can prove this by the fact that the el variable which is of type IHTMLElement : el->get_className(&cl); //Al Ai editable is correctly displaying the class of the iframe in the MessageBox. The problem i have now is that i can