globalmousekeyhook icon indicating copy to clipboard operation
globalmousekeyhook copied to clipboard

Just want to use on My Winform.

Open smallprogrammers opened this issue 4 years ago • 4 comments

Hello, Is it possible Keyboard globally hooked keys will just worked on my Winform Application. Not on other windows.

Easily to say - If i hooked for A. Then that "A" will not work on any other window. Possible ?

Thanks in advanced.

smallprogrammers avatar Nov 17 '19 14:11 smallprogrammers

Instead of using global, use Hook.AppEvents()

CrazyTim avatar Dec 02 '19 22:12 CrazyTim

@CrazyTim Thanks for your reply. Bro can you tell me one more thing ? I want to hook global. But only my application will capture it. If user type any charter on Notepad,Word or anywhere that will be not visible on there. Only it will visible in my app.I means it will only appear in my application. None where else. Possible? Suppose someone type APPLE in notepad. But it only show in my app. Not in notepad while hook by my app.

smallprogrammers avatar Sep 25 '21 15:09 smallprogrammers

@smallprogrammers give the following lib a try. :)

https://github.com/zaafar/ClickableTransparentOverlay

zaafar avatar Sep 25 '21 23:09 zaafar

@CrazyTim I want to hook global. But only my application will capture it.

Yes you can do that by putting e.handled = true in your keyboard handlers.

jonjonsson avatar Sep 26 '21 23:09 jonjonsson