I have some problems in returning the number of keys typed on the keyboard.
I finished the part when he can detect every key typed but I need the number of total keys typed.
This is my code written in python:
import pyHook
import pythoncom
def OnKeyboardEvent(event):
print ('Key:', event.Key)
print ('---')
return True
def events():
hm = pyHook.HookManager()
hm.KeyDown = OnKeyboardEvent
hm.HookKeyboard()
pythoncom.PumpMessages()
hm.UnHookKeyboard()
events()