I need to listen to custom-event from a browsercontrol in a visual-basic program A recent windowsupdate prevents vbscript from working
Our problem: after windos update KB4490481 the internet explorer looses his VBScript capability! I know that IE11 doesn't run VBScript anyway, but I'm talking about the browsercontrol, which is behaving as IE7 by default!
Well ok, so I converted the VBScript code to javascript, that seems fine But it also uses Customevents, I used this help for it: here
Seems ok, when you listen internaly to the event
But, I need the customevent to be raised to the mainprogram which contains the browsercontrol, that doesn't work!
Unfortunately the mainprogram is written in VB6 (Visual Basic 6), so I don't find much help on it My problem is, that "addEventListener" properly with the help of https://msdn.microsoft.com/en-us/ie/aa752045(v=vs.94) I'm able to lisen to non customevents like
Browser.Document.getElementById("btnMyButton").addEventListener "click", cfForward
but not to my customevent
Browser.Document.addEventListener "JSEvent", cfForward, False
Can anyone provide help? I guess that working VBA Office Sample will also help me
The best thing for me would be a registry key to get vbscript back
Other things that don't help:
<meta http-equiv="x-ua-compatible" content="IE=10">
==> had no effekt, vbscript doesn't run
rename the page to .hta: Vbscript ist still working there, but there is a confirmation dialog, and it opens its own window
thanks Donald
"btnMyButton" is a Button
Browser.Document.getElementById("btnMyButton").addEventListener "click", cfForward
==> is ok
"JSEvent" is a custom-event, that is fired onmousedown for testing
Browser.Document.addEventListener "JSEvent", cfForward, False
==> not ok