Bottom Page

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
 Pynput - no capital letters
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

with Listener(on_press = look_for_key) as l:
The key controller works, allowing me to send "Hello World", but I am unable to identify a 'H' only 'h'. I tried running under admin with the same result.
Made a Win7 VM machine with the same result (I was really hoping it would be a win10 issue), same result. Also tried installing PyCharm as that's what a few of the videos show (
I believe it should be catching all Alt key actions, otherwise we wouldn't be able to code for laptops with often unique Alt key actions.

Anyhow, I'll let this die until I have an answer for others to post.

Top Page

Possibly Related Threads...
Thread Author Replies Views Last Post
  macron on top of uppercase letters newbieAuggie2019 3 269 Aug-21-2019, 08:06 PM
Last Post: newbieAuggie2019
  List capital letters ricardodepaula 8 412 Jul-23-2019, 03:23 AM
Last Post: ricardodepaula
  Pynput doesn't recognize shift button and special characters VirtualDreamer 0 124 Jul-17-2019, 11:55 AM
Last Post: VirtualDreamer
  Letters with Accents Not Inputting Phylus 0 127 Jun-12-2019, 04:05 PM
Last Post: Phylus
  Letters with Accents Not Displaying Phylus 5 355 Jun-12-2019, 05:43 AM
Last Post: Phylus
  Counting the number of letters in a string alphabetically TreasureDragon 2 277 Mar-07-2019, 01:03 AM
Last Post: TreasureDragon
  Replacing all letters in a string apart from the first letter in each word Carbonix 9 671 Jan-17-2019, 09:29 AM
Last Post: buran
  Sorting lists prioritizing letters before numbers Ratherfastmofo 5 431 Nov-21-2018, 06:44 PM
Last Post: woooee
  Problem with updating file to attach/pynput jameseroni 7 693 Nov-02-2018, 03:47 AM
Last Post: jameseroni
  Replacing letters on a string via location Owenix 2 474 Sep-16-2018, 10:59 AM
Last Post: gruntfutuk

Forum Jump:

Users browsing this thread: 1 Guest(s)