Reputation: 650
I am trying to make a little script to automate writing some stuff, but I have found out that if I do
keyboard.type("Stuff: some more stuff")
I will get
Stuff> some more stuff
.
I have tried every character I could think of and it turns out it changes the characters to completely different ones. Is there any way I can insert the colon using pynput?
Upvotes: 0
Views: 221
Reputation: 23
It looks like you can't type it directly on Parrot OS, so you'd have to do this:
from pynput.keyboard import Key, Controller
keyboard = Controller()
keyboard.press(':')
keyboard.release(':')
Upvotes: 1