Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #43646
    sultand
    Participant

    File “keylogger1.py”, line 8, in process_key_press

    log = log + str(key.char)

    AttributeError: ‘Key’ object has no attribute ‘char’

    Link:
    https://postimg.cc/PPjytW12
    https://postimg.cc/DSCPdRHM

    #43655
    Diego PérezDiego Pérez
    Moderator

    Hi!
    Did you get this error just by starting the keylogger or when you press a specific key? Did you successfullt install pynput?

    Let me know.
    Diego

    #43687
    sultand
    Participant

    Dear Diego,

    Yes I installed pynput successfully.

    When I start the keylogger it works fine because I can type and see the alphabet displayed on terminal but once I click any special key like SPACE, CAP TAB etc it quits the keylogger program and gives me the error message below

    (File “keylogger1.py”, line 8, in process_key_press

    log = log + str(key.char)

    AttributeError: ‘Key’ object has no attribute ‘char’)

    #43708
    Diego PérezDiego Pérez
    Moderator

    Hi!
    Yeah, then it’s normal. Just continue with the lectures and that issue will be addressed later on.

    Greetings!
    Diego

Viewing 4 posts - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.