Nov-12-2016, 09:17 PM
So, im trying to make a Keylogger in python but i always get the same error. I have watched different youtube videos on how to make a keylogger, and i have tried some of the different methods. but i get this one error.
This is how im writing the keylogger:
This is how im writing the keylogger:
import pyHook, pythoncom, sys, logging file_log = 'C\\important\\log.txt' def OnKeyBoardEvent(event): logging.basicConfig(filename=file_log, level=logging.DEBUG, format='§(message)s') chr(event.Ascii) logging.log/10,chr(event.Ascii) return True hooks_manager = pyHook.HookManager() hooks_manager.KeyDown = OnKeyBoardEvent hooks_manager.HookKeyBoard() pythoncom.PumpMessages()And here is the error im getting:
Error:Traceback (most recent call last):
File "C:/Users/Henrik/Desktop/lal.pyw", line 13, in <module>
hooks_manager.HookKeyBoard()
AttributeError: 'HookManager' object has no attribute 'HookKeyBoard'
Im pretty new to programming, so i dont know much about it. But i wanted to try and make a Keylogger as my first project.