Global events on hooks and keyboards don't fire

I used the exact same code in my C # desktop app as listed here: https://github.com/gmamaladze/globalmousekeyhook

It works and fires the mousedown and keypress events while the application has focus. If I am in another application, let's take a look at visual studio (while Logger Logger is running), it does not fire events.

Is this the correct behavior? If so, any help to achieve this would be appreciated.

+3


source to share


1 answer


As suggested by @Hans Passant, the app needs to run in elevated mode if we need to track activity in other elevated apps. Running ClickOnce Application in Advanced Security was not easy, I used this trick to achieve it. http://antscode.blogspot.com.au/2011/02/running-clickonce-application-as.html



+1


source







All Articles