bho

Is there an IE notification box like gBrowser.getNotificationBox() in firefox

末鹿安然 提交于 2020-01-13 06:54:27
问题 A browser helper object I'm writing at the moment needs to alert the user of certain situations. I don't want to use the WinAPI function MessageBox, because it forces the user to click it away. Is there a possibillity to ask the user a question without blocking his workflow? He should be able to just ignore the question, if he isn't interested in it at the moment. Something like gBrowser.getNotificationBox() for firefox extensions would be ideal (example image appended). 回答1: You can create

Implementing ActiveX Control for web browser

大城市里の小女人 提交于 2020-01-07 08:32:26
问题 My requirement is to develop a ActiveX control which can send the byte stream to serial port. The ActiveX control should expose only one function like SendData(char* data, int nLen, int nPort) This function should be able to be invoked by pressing a button developed in java rendered in Internet Explorer(both 32 and 64 bit). I am confused whether i should go with windowless ActiveX control using MFC/ATL or Browser Helper Objects. In future i may need to support Firefox also. Any help will be

Access a span inside iframe using mshtml

我们两清 提交于 2020-01-04 07:18:51
问题 Im creating an IE BHO and trying to access a page that has multiple iframe tags. How to access the text in a span with id="messageText-txt" which is inside a specific iframe with name="isolatedWorkArea" and id="isolatedWorkArea" using mshtml. I tried the following options but none of them returns me the text. Any idea? Option 1: void BrowserEvents_NavigateComplete2(object pDisp, ref object URL) { SHDocVw.InternetExplorer currentIEWin = pDisp as SHDocVw.InternetExplorer; mshtml.IHTMLDocument2

Access a span inside iframe using mshtml

旧街凉风 提交于 2020-01-04 07:18:12
问题 Im creating an IE BHO and trying to access a page that has multiple iframe tags. How to access the text in a span with id="messageText-txt" which is inside a specific iframe with name="isolatedWorkArea" and id="isolatedWorkArea" using mshtml. I tried the following options but none of them returns me the text. Any idea? Option 1: void BrowserEvents_NavigateComplete2(object pDisp, ref object URL) { SHDocVw.InternetExplorer currentIEWin = pDisp as SHDocVw.InternetExplorer; mshtml.IHTMLDocument2

IHTMLEventObj::put_keyCode fails in IE9 RC

瘦欲@ 提交于 2020-01-01 19:59:35
问题 I have an IE BHO created over 3 years ago that uses IHTMLEventObj::put_keyCode function. This function has worked as documented in IE6, IE7 and IE8. However, when testing with IE9 RC it no longer works as documented. The function is called the same way and the result is S_OK, but the key does not show up in the input field. The call is being made in the DISPID_HTMLELEMENTEVENTS2_ONKEYPRESS even of my Invoke() function. I found someone with a similar problem: http://social.msdn.microsoft.com

Accessing data in a Frame or Iframe with IE plugin Browser Helper Object (BHO)

十年热恋 提交于 2019-12-29 08:09:07
问题 I am writing an IE plugin that wrap phone numbers in a link that connects to a phone system and dials that number when clicked. I am accomplishing this by using DocumentComplete event. //using SHDocVw.WebBrowser webBrowser.DocumentComplete += new DWebBrowserEvents2_DocumentCompleteEventHandler(this.OnDocumentComplete); The problem is I cannot seem to access elements inside of frame and iframe elements. Question: How do you manipulate data inside frame and iframe elements in IE using a Browser

Child window for Internet explorer flickering

我们两清 提交于 2019-12-25 05:48:10
问题 I am writing a browser helper object and want to show a child window inside the internet explorer window to show the user some messages. I use DS_CONTROL and WS_CHILDWINDOW and want to get a behaviour similar to the message in this image: I succeeded in inserting and showing a child window, but the window is flickering and sometimes it's visible and sometimes the website content is above the window in the z coordinate. I tried to set the child window as topmost window, but that didn't change

How to get access of <iframe> body using c++/ATL/COM?

大兔子大兔子 提交于 2019-12-25 02:34:10
问题 I have written a browser helper object to get the text between the tags and use it for data mining purpose. I tried using it on igoogle (basically to test its capability on gadgets) and it failed in some of the cases where an <iframe> is present with some external source. I can get the <div> and its child <iframe> but fail to get the body. I get the frame collection from this API HRESULT IHTMLDocument2::get_frames(IHTMLFramesCollection2 **p); The problem can be re-created in igoogle and

How to set the publisher name in a BHO

…衆ロ難τιáo~ 提交于 2019-12-24 12:28:49
问题 I have written a BHO and a toolbar for Internet Explorer in C#. They are getting installed and working properly. In the manage add-ons window in IE8, I am able to see both my BHO and toolbar. But, the publisher name of both is set to "Control name is not available". How can I set the publisher name? 回答1: Two things: Are you signing your .dll? You need to sign your modules as well as your installation package. Make sure your .dll has a VERSIONINFO resource in your .rc file. Here's the

how to start bho(browser helper objects) programming

蓝咒 提交于 2019-12-24 06:42:39
问题 I need to develop a bho, but I never use it before. So can anyone give me some advices on how to start bho? Some tutorials are welcomed. PS: I am familiar with C++ developing. 回答1: Here are some samples: http://social.msdn.microsoft.com/forums/en-US/ieextensiondevelopment/thread/a7900d83-572f-4781-a0c4-41ea39710d31/ http://www.adp-gmbh.ch/win/com/bho.html hope it help 来源: https://stackoverflow.com/questions/10331890/how-to-start-bhobrowser-helper-objects-programming