Ciro García
Ciro García

Reputation: 650

Type colon (:) with pynput

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

Answers (1)

just some guy
just some guy

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

Related Questions