Python Forum
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Pynput - no capital letters
#1
Is there a known issues with Windows 10 to where it doesn't recognize characters modified by shift or Caps Lock?
It does record the key event of the shift press.

Anyone know if I'm missing something ?

from pynput.keyboard import Listener

def look_for_key(key):
        
    letter = str(key)
    letter = letter.replace("'", "")
        
    if letter == 'Key.esc':
        return False
    
    print(letter)


with Listener(on_press = look_for_key) as l:
    l.join()
Reply


Messages In This Thread
Pynput - no capital letters - by jmair - Feb-10-2019, 08:58 AM
RE: Pynput - no capital letters - by jmair - Feb-11-2019, 05:05 PM
RE: Pynput - no capital letters - by jmair - Feb-12-2019, 09:53 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Problem with "from pynput" LFreitas 1 182 Mar-24-2024, 02:23 AM
Last Post: deanhystad
  Pynput - One content on screen, another in the variable Valjean 4 963 Sep-18-2023, 06:00 PM
Last Post: Valjean
  Pynput Library not Working with Windows jacknewport 1 2,327 Mar-26-2022, 07:09 PM
Last Post: snippsat
  Solve Pynput Problem when changing language? ppel123 0 2,273 Feb-19-2020, 03:38 PM
Last Post: ppel123
  import pynput Sherlock42 2 3,336 Feb-08-2020, 04:01 PM
Last Post: Sherlock42
  List capital letters ricardodepaula 8 4,641 Jul-23-2019, 03:23 AM
Last Post: ricardodepaula
  Pynput doesn't recognize shift button and special characters VirtualDreamer 0 3,020 Jul-17-2019, 11:55 AM
Last Post: VirtualDreamer
  Problem with updating file to attach/pynput jameseroni 7 4,443 Nov-02-2018, 03:47 AM
Last Post: jameseroni
  Pynput while not using text field Superbit 2 4,236 Mar-07-2018, 04:35 AM
Last Post: Superbit
  make a list of string in capital by using a function anancba 3 3,432 Nov-23-2017, 06:42 AM
Last Post: heiner55

Forum Jump:

User Panel Messages

Announcements
Announcement #1 8/1/2020
Announcement #2 8/2/2020
Announcement #3 8/6/2020