I am trying to "hear" mouse events in windows, and made a mouse hook. But I think for security reasons, every time I open Internet Explorer on any site that uses the protocol https: / /, the hook is down, and return when I leave the secure url or close the IE.
In firefox, don't have any problem, the hook works fine.

I want to know if there is some workaround, or even a different way of my application hear the events global mouse in windows.

Indeed, my application is in Java, but I was forced to do the hook in C + + and use JNI to access it.

My knowledge in C / C + + are very small, but if someone has any example, or even an idea of how to get around this problem, I thank you.

Thanks.

Are you using a global or local hook?

If global, it is possible that IE installs a global hook on "https://" pages that blocks the rest of the hook chain. The only way around that would be to install your hook after IE opens the https page, and I don't know how you'd query to know every time IE installs/uninstalls said hook.

Tks a lot... I will try it !!!

In time... I'm using global hook....

I try your sugestion, and it still not working.
Any other idea?

Sorry, I've no idea what else to try.

Anyway, thank you!

I am trying to "hear" mouse events in windows, and made a mouse hook. But I think for security reasons, every time I open Internet Explorer on any site that uses the protocol https: / /, the hook is down, and return when I leave the secure url or close the IE.
In firefox, don't have any problem, the hook works fine.

I want to know if there is some workaround, or even a different way of my application hear the events global mouse in windows.

Indeed, my application is in Java, but I was forced to do the hook in C + + and use JNI to access it.

My knowledge in C / C + + are very small, but if someone has any example, or even an idea of how to get around this problem, I thank you.

Thanks.

DinoSauro,

I have a Java application. It opens a KML file in Google Earth. Now I want to receive mouse events in my Java application when the user clicks on the Google Earth 3D viewer, and react to the events.
The global mouse hook you developed in C++ and JNI is what I am looking for. Is it possible to share your solution with me please?
I really appreciate your help!

Michael

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.