microsoft.mshtml

How to make SHDocVw.InternetExplorer fire events that get caught with JS addEventListener?

拈花ヽ惹草 提交于 2021-02-10 04:15:54
问题 The following problems: I need to simulate a double-click on a div element. I need to use/handle MS Internet Explorer 11. I cannot change the source code of the target site. My solution so far: I use C# and SHDocVw.InternetExplorer and mshtml I can fire "click" events al right, they show up in all handlers When trying to simulate the double-click: the "ondoubleclick" event gets triggered. the el.addEventListener('dblclick', handler); does NOT get triggered To reduce the complexity of the

How to make SHDocVw.InternetExplorer fire events that get caught with JS addEventListener?

风格不统一 提交于 2021-02-10 04:14:52
问题 The following problems: I need to simulate a double-click on a div element. I need to use/handle MS Internet Explorer 11. I cannot change the source code of the target site. My solution so far: I use C# and SHDocVw.InternetExplorer and mshtml I can fire "click" events al right, they show up in all handlers When trying to simulate the double-click: the "ondoubleclick" event gets triggered. the el.addEventListener('dblclick', handler); does NOT get triggered To reduce the complexity of the

How to make SHDocVw.InternetExplorer fire events that get caught with JS addEventListener?

天涯浪子 提交于 2021-02-10 04:13:32
问题 The following problems: I need to simulate a double-click on a div element. I need to use/handle MS Internet Explorer 11. I cannot change the source code of the target site. My solution so far: I use C# and SHDocVw.InternetExplorer and mshtml I can fire "click" events al right, they show up in all handlers When trying to simulate the double-click: the "ondoubleclick" event gets triggered. the el.addEventListener('dblclick', handler); does NOT get triggered To reduce the complexity of the

WinForms problem with mshtml and ie9

天大地大妈咪最大 提交于 2020-01-24 12:23:22
问题 IE9 appears to have broken my mshtml com based WebBrower html editor in my 32-bit winforms .net 3.5 application. (It has to be set to 32-bit due to an activex USB device controller I have to use.) The bug is erratic - it doesn't happen on my system. If my customer runs IE9, and then my 32-bit application with the WebBrowser based html editor, my app hangs, no response. This did not happen with IE8. This is so screwed up I don't even know how to formulate the question. 来源: https:/

mshtml and CLS-compliance

耗尽温柔 提交于 2019-12-12 19:13:58
问题 I am witnessing some odd behaviour with mshtml and CLS-compliance. I have an assembly marked CLSCompliant(true). This assembly does not expose any types from mshtml publicly. I can make the code conform to CLS fairly easily, but several things seem to break it: Introducing a "using mshtml;" statement instead of referencing the namespace manually each time I use a type. For some reason, this breaks CLS compliance. If I convert the following: var doc = webBrowser.Document as mshtml.HTMLDocument

Why doesn't MSHTML for .Net have querySelector and querySelectorAll, or where are they?

青春壹個敷衍的年華 提交于 2019-12-10 16:14:24
问题 I want to use MSHTML [1] to access DOM in IE, but I have just found out that it lacks querySelector and querySelectorAll methods in HTML document classes, which will otherwise be very helpful to obtain elements within a document by CSS selectors. The only workaround I can think of for now is to do everything by executing a script, but it is awful. Is there any MSHTML version that has the two methods (querySelector and querySelectorAll)? Is there any other libraries (hopefully, official .Net

mshtml 8.0 and Microsoft.mshtml 7.0

安稳与你 提交于 2019-12-07 12:37:05
问题 I'm a little confuse and maybe you can help me. I've the mshtml.dll (version 8.0) and the Microsoft.mshtml.dll (version 7.0) If I go to add a reference to my WPF project and try to add the mshtml.dll, it tells me that the reference has to be a valid assembly or com component. And that's right as I know I have to add a reference to Microsoft.mshtml.dll because it's mshtml.dll's wrapper, am I right? Now, my mshtml.dll version is 8.0 and Microsoft.mshtml is 7.0. Where can I found the 8.0 version

mshtml 8.0 and Microsoft.mshtml 7.0

对着背影说爱祢 提交于 2019-12-06 00:06:29
I'm a little confuse and maybe you can help me. I've the mshtml.dll (version 8.0) and the Microsoft.mshtml.dll (version 7.0) If I go to add a reference to my WPF project and try to add the mshtml.dll, it tells me that the reference has to be a valid assembly or com component. And that's right as I know I have to add a reference to Microsoft.mshtml.dll because it's mshtml.dll's wrapper, am I right? Now, my mshtml.dll version is 8.0 and Microsoft.mshtml is 7.0. Where can I found the 8.0 version of Microsoft.mshtml.dll? If I add the 7.0 of the Microsoft.mshtml.dll it'll run the functions of the

Fire event with vba & InternetExplorer.Application to recalculate jquery form

两盒软妹~` 提交于 2019-12-05 04:10:01
问题 I'm trying to gather data from different websites. Therefore i'm using excel vba and start an internet explorer. I'm able to fill out a normal form. But sometimes i have to fill out a dynamic form with a jquery script behind. The form will only enable all input fields (drop down menus), if the first 2 fields are filled out and an event is fired. So my script is able to fill out the form but not to fire the "recalculation" event which is needed. If you fill out the form manually with your

Fire event with vba & InternetExplorer.Application to recalculate jquery form

爷,独闯天下 提交于 2019-12-03 20:54:55
I'm trying to gather data from different websites. Therefore i'm using excel vba and start an internet explorer. I'm able to fill out a normal form. But sometimes i have to fill out a dynamic form with a jquery script behind. The form will only enable all input fields (drop down menus), if the first 2 fields are filled out and an event is fired. So my script is able to fill out the form but not to fire the "recalculation" event which is needed. If you fill out the form manually with your mouse it works. How can i simulate this event? This is my excel vba script: Sub test_fill_form() Dim url1