bho

[C++] BHO Handle OnSubmit event

Basically I want to develop a BHO that validates certain fields on a form and auto-places disposable e-mails in the appropriate fields (more for my own knowledge). So in the DOCUMENTCOMPLETE event I have this: for(long i = 0; i < *len; i++) { VARIANT* name = new VARIANT(); name->vt = VT_I4; name->intVal = i; VARIANT* id ...

BHO: fast DOM manipulation

I´m writing a IE BHO using C++. I wait for the DOCUMENTCOMPLETE event. After that I remove some Elements from the DOM. On small websites it works fine but on the larger ones - the website is visible for a few seconds waiting for a few elements and after that the documentComplete event fires - and remove the elements. Is it posible to ap...

Browser Helper Objects Resources

Can anyone tell my some books for learning Browser Helper Objects development in .Net/C#, beginner to advanced level? Thanks ...

Element offset and client positions in BHO

Hi all, How to find the position of the HTMLElement in BHO(C#)? I need both offset position of the element in the page and the client position of the element i.e. position of the element from the Left-Top of the client window. Any help would be greatly appreciated. Once again thanks a million. -Datte ...

IHTMLElement2.getBoundingClientRect() does not work correctly.

Hi all, The getBoundingClientRect() does not work accurately for all cases. It fails when say a list of links that are side by side in a row and half of them are pushed to the next line because all the links cannot be fit into the same line. Now for the first link at the 2nd line the getBoundingClientRect() does not give correct results...

How to create a floating div in BHO dynamically?

Hi all, How do I create a floating DIV in a web page on load using BHO with C#.NET? I just want to inject an HTML code snippet for DIV that will display "Hello World" on the page. The div should have absolute position styles. -Datte ...

How to create a floating PANEL in BHO dynamically?

Inserting the floating div through BHO in C#.NET modifies the existing DOM for the web page. I do not want to modify the DOM. Is there a way in which i can dispaly a text without even touching DOM? Like a floating panel or something? ...

BHO plugin not working for IE7 on 64bit OS

Hi all, The BHO which works smoothly on IE7 32bit XP/Vista does not work for IE7 on 64bt XP/Vista. I suspect the problem is with registering the BHO assembly. Can anyone has a good solution to make the BHO work for 64bit platform? Thanks, Datte ...

How does Google get a toolbar right below the tabs in IE?

I researched through all BHO related documentation, but I just can't figure how Google gets the translation toolbar right below the tabs in IE. Any useful pointers how to achieve the same effect for my own toolbar? ...

Debugging .NET Problems on Remote User PCs

I support a .NET IE Toolbar, for a population of users that have a variety of OS and IE versions, in a variety of remote locations. For a small number of these users, the toolbar installs properly, but never actually loads when they try to enable it in IE. We haven't been able to replicate this situation on our test pcs. Most of our su...

.NET IE BHO Remoting

I have a IE Browser Helper Object, which is a Toolbar addin for IE 8. I have another .NET .EXE application (Remoting Client) that connects to this BHO (Remoting Server) using remoting via common Interface. When I test the communication between the .EXE application and a TEMP Console application with the same code used in the Server compo...

BHO, IHTMLDocument2:get_scripts() and external script

I am writing a BHO, the code using IHTMLDocument2::get_scripts to get all script body in the HTML file then use get_text() to get script source. But I found if script is embedded from a external file, the content is an empty string. Is there any way to get source code from an IHTMLScriptElement that is created by ? ...

Attach an event Handler to mshtml.DispHTMLInputElement

I'm busy writing a BHO(Browser Helper Object) in C# and I need to attach events handlers to all onclick events on Input Elements. I'm NOT using the built in webbrowser provided by visual studio, instead I am launching a new instance of the Internet Explorer installed on the clients PC. The problem comes in when using different versions o...

Managed BHOs not instantiated using Protected Mode

I am writing a BHO for IE using C#. The code I'm concerned with is this: public class BHO : IObjectWithSite, IOleCommandTarget { ... public BHO() { MessageBox.Show("Constructor called"); } public int SetSite(object site) { MessageBox.Show("SetSite called!"); if( site != null ) { ...

How to Access AppData in IE Protected Mode (from a Managed BHO)

I am writing an IE Extension (BHO) in C#. When run in protected mode (IE's new UAC-compliant mode which forces all extensions to run at low-integrity), it fails because it cannot access user.config in the appdata folder. Is there some way to mark files are readable by lower-integrity processes? Failing that, is there some way to f...

Sandboxed Javascript Execution in an Internet Explorer Extension (BHO)

Firefox has the Sandbox and evalInSandbox(). Chrome has sandboxed execution in their content scripts (they call it isolated execution). I'm looking for the same thing in an IE browser extension. I can load a javascript file, then call evalScript(), but the code executes in the same environment as javascript that exists on the page. I ne...

Out of Control HTTPWebRequest

I've got a Browser Helper Object written in C# that makes a HTTPWebRequest POST to my server when the user clicks a button on a windows form, and in the normal case this works great. However, every so often, I'll get a BHO that seems to go crazy and continually send me a huge number of HTTPWebRequests (around 50 to 100 per minute). The...

What's the most reliable way of getting a page's referrer in IE?

From within a browser extension (BHO) I want to know the URL that referred a user to the current page. I thought I could just get the document.referrer, but I find that's blank if links are opened in a new window. Is this just tough bikkies or can I use opener.location.href in some cases, or something else? As a follow-up, I'm currently...

Generate HTML source code from IE DOM

Is there any way to generate HTML source code from live DOM tree in IE? The DOM may be modified by JavaScript, but I just want the final result. If I want to write a BHO to do this, which event should I handle such thing? ...

Calling javascript on webpage from static method in BHO

Im writing a BHO for internet explorer where i need to call javascript methods on all open browser instances from a 'static' (or a 'global') callback method. I'm running into issues that i'm sure are related to multi-threading in COM. I had few general questions regarding this (i am new to windows programming!). Every browser would hav...