bho

IE Extention/Plugin/Addon javascript injection in iframe and document c#

拥有回忆 提交于 2019-11-28 06:52:34
问题 I am facing issue with BHO in C# ,Javascript not inject in iframe . How to get access of <iframe> body using c++/ATL/COM? question is similar like but in this above using com. i want to use C#. 回答1: I have created a IE extension/Plugin/Addon To inject my Custom JavaScript on page as well as on IFrame attache with the document So I created BHO in c# . in Document complete Event private void webBrowser_DocumentComplete(object pDisp, ref object URL) { // this is main docuemnt document =

Calling C# BHO methods from Javascript

好久不见. 提交于 2019-11-28 06:34:22
I'm trying to figure out how to call C# methods in my BHO object from Javascript within the page. I found numerous pages on how to do it in C++/ATL/Com such as: Browser Helper Objects and Scripts Options Calling BHO method from Javascript? I have tried to follow along and implement it correctly in C#, but I can't get it to work probably due to some obvious COM problems that I have which I don't fully understand. I am using C# 4.0. Here are the relevant parts of the code: using SHDocVw; using mshtml; using System.Runtime.InteropServices; [ComVisible(true), Guid("300736C4-DCDA-4DB0-90AD

How to debug C# BHO project in visual studio/internet explorer

非 Y 不嫁゛ 提交于 2019-11-27 18:41:45
问题 I'm creating an IE extension in C# using visual studio 2010. How do I go about debugging the extension whilst running it in Internet Explorer? 回答1: Project + Properties, Debug tab. Select "Start external program", set it to c:\program files\internet explorer\iexplore.exe. You probably want to set the "Command line arguments" to the path of an HTML file that exercises your BHO. Set a breakpoint on the code you want to debug. Internet Explorer will start running when you press F5. You'll see

Add browser action button in internet explorer BHO

本小妞迷上赌 提交于 2019-11-27 18:21:05
So. I'm working on a BHO in IE and I want to add a browser action like this: In internet explorer it would look something like The only tutorials and docs I've found were on creating toolbar items. None mentioned this option. I know this is possible because crossrider let you do this exact thing. I just don't know how. I can't find any documentation on how I would implement this in a BHO. Any pointers are very welcome. I tagged this with C# as a C# solution would probably be simpler but a C++ solution, or any other solution that works is also very welcome. EDIT: https://github.com/somanuell

Add browser action button in internet explorer BHO

心已入冬 提交于 2019-11-27 04:16:18
问题 So. I'm working on a BHO in IE and I want to add a browser action like this: In internet explorer it would look something like The only tutorials and docs I've found were on creating toolbar items. None mentioned this option. I know this is possible because crossrider let you do this exact thing. I just don't know how. I can't find any documentation on how I would implement this in a BHO. Any pointers are very welcome. I tagged this with C# as a C# solution would probably be simpler but a C++

Call BHO from Javascript function

江枫思渺然 提交于 2019-11-27 03:42:07
问题 Greetings, I am new to MSDN/Windows programming/MFC/IE extension development environment. I am looking to port my Firefox and Chrome addon into an IE addon. I have been successful to a good extent in creating a BHO and have been able to inject my code into every IE window as noted here - http://msdn.microsoft.com/en-us/library/bb250489%28v=vs.85%29.aspx I am only stuck with the issue of being able to call the BHO function from javascript. Just need help in being able to call window.HelloWorld

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

倾然丶 夕夏残阳落幕 提交于 2019-11-27 01:57:06
问题 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 force the BHO to run at medium-level integrity? Failing that, is there some way to create a low-integrity symlink in the low-integrity folders which points to a