Windows Hooks, It´s possible a workaround

Please support our C++ advertiser: Intel Parallel Studio Home
Reply

Join Date: Feb 2008
Posts: 4
Reputation: DinoSauro is an unknown quantity at this point 
Solved Threads: 0
DinoSauro DinoSauro is offline Offline
Newbie Poster

Windows Hooks, It´s possible a workaround

 
0
  #1
Feb 12th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,953
Reputation: Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of 
Solved Threads: 214
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: Windows Hooks, It´s possible a workaround

 
0
  #2
Feb 12th, 2008
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.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 4
Reputation: DinoSauro is an unknown quantity at this point 
Solved Threads: 0
DinoSauro DinoSauro is offline Offline
Newbie Poster

Re: Windows Hooks, It´s possible a workaround

 
0
  #3
Feb 13th, 2008
Tks a lot... I will try it !!!
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 4
Reputation: DinoSauro is an unknown quantity at this point 
Solved Threads: 0
DinoSauro DinoSauro is offline Offline
Newbie Poster

Re: Windows Hooks, It´s possible a workaround

 
0
  #4
Feb 13th, 2008
In time... I'm using global hook....

I try your sugestion, and it still not working.
Any other idea?
Reply With Quote Quick reply to this message  
Join Date: Oct 2007
Posts: 1,953
Reputation: Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of Duoas has much to be proud of 
Solved Threads: 214
Featured Poster
Duoas's Avatar
Duoas Duoas is offline Offline
Posting Virtuoso

Re: Windows Hooks, It´s possible a workaround

 
0
  #5
Feb 13th, 2008
Sorry, I've no idea what else to try.
Reply With Quote Quick reply to this message  
Join Date: Feb 2008
Posts: 4
Reputation: DinoSauro is an unknown quantity at this point 
Solved Threads: 0
DinoSauro DinoSauro is offline Offline
Newbie Poster

Re: Windows Hooks, It´s possible a workaround

 
0
  #6
Feb 14th, 2008
Anyway, thank you!
Reply With Quote Quick reply to this message  
Join Date: May 2008
Posts: 1
Reputation: michaelHuo is an unknown quantity at this point 
Solved Threads: 0
michaelHuo michaelHuo is offline Offline
Newbie Poster

Re: Windows Hooks, It´s possible a workaround

 
0
  #7
May 23rd, 2008
Originally Posted by DinoSauro View Post
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
Reply With Quote Quick reply to this message  
Reply

This thread is more than three months old.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC