Keyboard low hook

I just bought a new keyboard, and I’m curious to keep track of how many keystrokes / strokes I have been doing in my entire keyboard life. (I would just write keyUp as I don't care about repeats)

I was looking for the best way to do this, but I don’t even know which approach to take, so I have problems finding it wisely. Also, the only language I really worked with is C #. Did not do anything with C / C ++ or WinAPI

Is it difficult to change Win 7 drivers directly? I want to be able to record keystrokes from the moment the computer boots up, but this can be difficult. I would prefer to use an existing driver or hook, since I really don't want to go into studying device drivers right now.

I looked briefly at Ctrl2Cap, but I don’t know how to change something like this according to my case.

Other questions I was looking at

This means that writing a USB filter driver may work, but I don’t know where to start. Keyboard mute in Windows C ++?

+4
source share
2 answers

No need to follow the driver’s route, which is not for the faint of heart. You can use a low-level keyboard that works great with .NET.

I quickly used bing and found the following on codeplex http://globalmousekeyhook.codeplex.com/

He must catch you

+1
source

What you want is dangerous! With the same code, anyone can create a keylogger * But if you are not a virus creator, then I recommend that you search for "hot keys in C / C ++" or something like that and connect the keyboard using hot keys! I wrote HotKey Maker in VB6, which can do a hotkey with each button on the keyboard. But I'm really not interested in viruses :) Good luck!

* A virus that intercepts your keyboard and sends everything you wrote on the keyboard to the owner of the virus

-1
source

All Articles