I am learning pynput
and working on some projects. pynput
is working but it is NOT working when it comes to upper case letters or special characters like !@#$%^&**
etc. but .
and ,
are working.
Code:
from pynput.keyboard import Key, Controller
keyboard = Controller()
phrase = "Hey there, smile :)"
keyboard.type(phrase)
Output:
aey there, smile aa
As you can see it is NOT printing out upper case letters nor special characters. Instead of Hey
it is doing aey
Replacing upper case letters and special characters with a
NOTE: I've tested the code with windows platform and it works perfectly fine. I'm assuming it is my Mac's fault.