If you struggle to capture IE events dynamically, and then want to get a particular DOM object when your events fire, you should immediately see the value in this demo. I've written this as a stopgap in lieu of probably never being able to use window.external in AutoIt. What it does is create a simple html file, and a button which calls a js function, Au3Callback, passing in as parameters the button itself as an object, and a string. The demo then loads this document into an IE wrapper GUI,