Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

how to write repeatedly numbers for 900 to 1000 with pyautogui

import pyautogui as pag
import time

D = 900

for D in range(100):
    pag.write(D)
    pag.press("Enter")
    D += 1

i want it to type untill its get to 1000

>Solution :

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

import pyautogui as pag

D = 900

while D < 1001
    pag.typewrite(f"{D}")
    pag.press('Enter')
    D += 1

Int has to be string!

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading