how to write repeatedly numbers for 900 to 1000 with pyautogui

0

Issue

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

import pyautogui as pag

D = 900

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

Int has to be string!

Answered By – Y33T

This Answer collected from stackoverflow, is licensed under cc by-sa 2.5 , cc by-sa 3.0 and cc by-sa 4.0

Leave A Reply

Your email address will not be published.

This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish. Accept Read More