Global Keyboard hook on Desktop

pdabasic

Active Member
Licensed User
Does anybody know how can I catch some keydown event with a background apps?

I try all of publicated library but I found only a way when my app window on focus.
 

ExcludeReality

Active Member
Licensed User
Does anybody know how can I catch some keydown event with a background apps?

I try all of publicated library but I found only a way when my app window on focus.

It's not possible to catch keystrokes in other windows.
If you're making a keylogger (which you hopefully aren't), you can try continuous screengrabs, clipboard monitoring or "form grabbing".
 

sitajony

Active Member
Licensed User
I think he want that when by example the user press "F3" run a function like several programs for make a screen capture movie or other...
It's surely possible... I saw something about "UserHook" in C# but don't remember where I found that sorry...
 

pdabasic

Active Member
Licensed User
It's not possible to catch keystrokes in other windows.
If you're making a keylogger (which you hopefully aren't), you can try continuous screengrabs, clipboard monitoring or "form grabbing".

I would like to write a simple clipboard tool. I think it is not so unsecurly and it is possible. I found the clipboard library on forum but i need to catch the Ctrl+C event and the other clipboard shortcut when my app isn't focused.

I think I write a simple timer which catch the clipboard any seconds but it isn't a so nice solution
 
Top