I am interested in a keylogger that logs all keys pressed, especially Ctrl, Alt, Shift, Alt Gr and all the media hotkeys such as Play, Stop, Next, Previous and so on.
As I only found keyloggers that do record neither Ctrl, Alt and Shift as isolated keys nor media hotkeys, I started to gather code snippets in Python which should provides all functionality to code such a simple keylogger on my own.
On the one hand I found pywinusb which is able to record media keys coming from a HID, on the other hand I found code snippets like this one.
I added print "event.Ascii = ", event.Ascii
to get the ASCII value, but for Ctrl, Alt and Shift, the output always is event.Ascii = 0
. Is there a way to determine those keys with any available library? I finally want to be able to run the keylogger in the background, so it is not suitable to use wxPython for example, since apparently the key press events always have to be bound to something inside a frame, and when being in a different window, no keys are being logged.