| | |
Windows Hooks, It´s possible a workaround
Please support our C++ advertiser: Intel Parallel Studio Home
![]() |
•
•
Join Date: Feb 2008
Posts: 4
Reputation:
Solved Threads: 0
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.
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.
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.
•
•
Join Date: May 2008
Posts: 1
Reputation:
Solved Threads: 0
•
•
•
•
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.
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
![]() |
Other Threads in the C++ Forum
- Previous Thread: Hmmm, can anyone help with Depth First Search?
- Next Thread: deleting from a linked list?
| Thread Tools | Search this Thread |
api array arrays beginner binary bitmap c++ c/c++ calculator char char* class classes coding compile compiler console conversion convert count data database delete desktop developer directshow dll dynamiccharacterarray email encryption error file forms fstream function functions game generator getline google graph homeworkhelper iamthwee ifstream input int integer java lib linkedlist linux list loop looping loops map math matrix memory multiple news node number numbertoword output parameter pointer problem program programming project proxy python random read recursion recursive reference return rpg sorting string strings struct template templates test text tree unix url vector video visualstudio win32 windows winsock word wordfrequency wxwidgets






