What's new

Python Keyboard Auto Type (Python)

MarvinJr20

Addict
Joined
Jul 5, 2020
Posts
96
Reaction
27
Points
86
[CODE lang="python" title="Keyboard Auto Type (Python)"]#install package: 'pip install pynput'

from pynput.keyboard import Key, Controller
import time

keyboard = Controller()

messages = "Type your message here..."

for i in messages:
keyboard.press(i)
keyboard.release(i)
time.sleep(0.02)

keyboard.press(Key.enter)
keyboard.release(Key.enter)[/CODE]
 

Similar threads

Back
Top