Originally posted by jian2587
Thanks for your kind help, but it didn't work.
I've thought of using Class, but I am quite unfamiliar with Class

Your code adds new IE hwnd all the time, but its the same with
my method.
It checks one IE event at one time, because you loops through
them and set your class to point to that IE.
As mentioned earlier, there might be a time where while you're
setting this IE's hwnd to point to the class, another IE has fired
the NewWindow2 event and ended without u knowing it.

Pls?
I'm not adding new hwnd all the time. I'm only creating a new object and set it to the new IE opened. So, I could have 4, 5, 6 (whatever) objects loaded in memory, each one "pointing" to one IE. So, if each object worked as it should it, all the events should be fired. I'd dare say that my method is much different from yours (excluding the main code, which was your idea)