Answer the question
In order to leave comments, you need to log in
How to smooth simulated typing in Python3?
There is the following code:
heroStory = "Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore"
for i in heroStory:
print(i, sep="", end="")
sleep(0.04)
Answer the question
In order to leave comments, you need to log in
#!/usr/bin/env python3.6
# -*- coding: utf-8 -*-
import pyautogui #грузим pyautogui
scri = pyautogui.size() #определим размер экрана
mous_pos = pyautogui.position() # определим позицию курсора
#pyautogui.moveTo(mous_pos[0]+100, mous_pos[1]+100, duration=1)
#Перемещение в вашем случае не обязательно - это пример
pyautogui.typewrite('\nСейчас я напечатаю десять символов в секунду!\n', interval=0.1)
print (scri, mous_pos[0], mous_pos[1]) # распечатаем позицию курсора мыши
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question