G
G
GArryGAN2021-09-25 14:26:29
Python
GArryGAN, 2021-09-25 14:26:29

Why is pyautogui.typewrite() not working?

in the last question, they told me how to fix the error, I started to deal with the library itself, I came across the typewrite () function, I wrote the code:

import pyautogui, time
time.sleep(2)
pyautogui.typewrite('hello world!', interval=0.1)

In the interval of 2 seconds, I open a notepad and it prints not "hello world!", but a space and an exclamation mark, i.e. letters are not printed at that moment the layout was English

Answer the question

In order to leave comments, you need to log in

1 answer(s)
S
Sergey Gornostaev, 2021-09-25
@GArryGAN

This is a library bug .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question