I am working to make a small keylogger with Python, by using the pyHook, pythoncom and Pywin32 modules. Here is my code:
import pyHook, pythoncom, sys, loggi
For me it worked to copy the files (pythoncom38.dll and pywintypes38.dll) from:
C:\Users\"Your user id"\AppData\Roaming\Python\Python38\site-packages\pywin32_system32
To the path:
C:\Users\"Your user id"\AppData\Roaming\Python\Python38\site-packages\win32\lib
and
C:\Users\"Your user id"\AppData\Roaming\Python\Python38\site-packages\win32